MCPcopy Create free account

hub / github.com/cloudflare/bn256 / functions

Functions161 in github.com/cloudflare/bn256

MethodAdd
(a, b *gfP2)
gfp2.go:64
FunctionBenchmarkG1
(b *testing.B)
bn256_test.go:213
FunctionBenchmarkG2
(b *testing.B)
bn256_test.go:222
FunctionBenchmarkGT
(b *testing.B)
bn256_test.go:231
FunctionBenchmarkHashG1Size1k
(b *testing.B)
hash_test.go:32
FunctionBenchmarkHashG1Size8bytes
(b *testing.B)
hash_test.go:27
FunctionBenchmarkHashG1Size8k
(b *testing.B)
hash_test.go:37
FunctionBenchmarkPairing
(b *testing.B)
bn256_test.go:240
MethodConjugate
(a *gfP12)
gfp12.go:78
FunctionExamplePair
()
example_test.go:7
MethodFinalize
Finalize is a linear function from F_p^12 to GT.
bn256.go:387
MethodFrobenius
Frobenius computes (xω+y)^p = x^p ω·ξ^((p-1)/6) + y^p
gfp12.go:91
MethodFrobeniusP2
FrobeniusP2 computes (xω+y)^p² = x^p² ω·ξ^((p²-1)/6) + y^p²
gfp12.go:99
MethodFrobeniusP4
(a *gfP6)
gfp6.go:73
MethodFrobeniusP4
(a *gfP12)
gfp12.go:106
MethodInvert
(a *gfP2)
gfp2.go:134
MethodIsOnCurve
IsOnCurve returns true iff c is on the curve.
twist.go:47
MethodIsOne
()
gfp6.go:42
MethodIsOne
()
gfp12.go:74
MethodMarshal
Marshal converts e into a byte slice.
bn256.go:394
FunctionMiller
Miller applies Miller's algorithm, which is a bilinear function from the source groups to F_p^12. Miller(g1, g2).Finalize() is equivalent to Pair(g1,
bn256.go:332
MethodMul
(a *curvePoint, scalar *big.Int)
curve.go:185
MethodNeg
(a *curvePoint)
curve.go:225
MethodNeg
Neg sets e to -a and then returns e.
bn256.go:215
MethodNeg
Neg sets e to -a and then returns e.
bn256.go:369
MethodNeg
(a *gfP2)
gfp2.go:58
MethodNeg
(a *gfP6)
gfp6.go:46
MethodScalarBaseMult
ScalarBaseMult sets e to g*k where g is the generator of the group and then returns out.
bn256.go:188
MethodScalarBaseMult
ScalarBaseMult sets e to g*k where g is the generator of the group and then returns out.
bn256.go:342
MethodScalarMult
ScalarMult sets e to a*k and then returns e.
bn256.go:197
MethodScalarMult
ScalarMult sets e to a*k and then returns e.
bn256.go:351
MethodSet
Set sets e to a and then returns e.
bn256.go:224
MethodSet
Set sets e to a and then returns e.
bn256.go:378
MethodSetInfinity
()
twist.go:60
MethodSetOne
()
gfp6.go:31
MethodString
()
curve.go:23
MethodString
()
bn256.go:182
MethodString
()
bn256.go:336
MethodString
()
twist.go:33
MethodString
()
gfp2.go:20
MethodString
()
gfp6.go:13
MethodString
()
gfp12.go:48
FunctionTestBilinearity
(t *testing.T)
bn256_test.go:117
FunctionTestDirtyUnmarshal
(t *testing.T)
bn256_test.go:201
FunctionTestG1
(t *testing.T)
bn256_test.go:10
FunctionTestG1Marshal
(t *testing.T)
bn256_test.go:25
FunctionTestG2
(t *testing.T)
bn256_test.go:44
FunctionTestG2Marshal
(t *testing.T)
bn256_test.go:59
FunctionTestGFp
(t *testing.T)
gfp_test.go:55
FunctionTestGT
(t *testing.T)
bn256_test.go:78
FunctionTestGTMarshal
(t *testing.T)
bn256_test.go:98
FunctionTestKnownHashes
(t *testing.T)
hash_test.go:9
FunctionTestSelfAddG1
(t *testing.T)
bn256_test.go:165
FunctionTestSelfAddG2
(t *testing.T)
bn256_test.go:183
FunctionTestTripartiteDiffieHellman
(t *testing.T)
bn256_test.go:133
MethodUnmarshal
Unmarshal sets e to the result of converting the output of Marshal back into a group element and then returns e.
bn256.go:264
MethodUnmarshal
Unmarshal sets e to the result of converting the output of Marshal back into a group element and then returns e.
bn256.go:436
FunctiongfpAdd
(c, a, b *gfP)
gfp_generic.go:37
FunctiongfpMul
(c, a, b *gfP)
gfp_generic.go:158
FunctiongfpNeg
(c, a *gfP)
gfp_generic.go:26
FunctiongfpSub
(c, a, b *gfP)
gfp_generic.go:48
← previous101–161 of 161, ranked by callers