MCPcopy Create free account
hub / github.com/cloudflare/bn256 / togfP

Function togfP

gfp_test.go:36–53  ·  view source on GitHub ↗

togfP converts an integer into a field element (in Montgomery representation). This function assumes the input is between 0 and p-1; otherwise it panics.

(k *big.Int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestGFpFunction · 0.85

Calls 1

montEncodeFunction · 0.85

Tested by

no test coverage detected