Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/bn256
/ functions
Functions
161 in github.com/cloudflare/bn256
⨍
Functions
161
◇
Types & classes
9
Method
Add
(a, b *gfP2)
gfp2.go:64
Function
BenchmarkG1
(b *testing.B)
bn256_test.go:213
Function
BenchmarkG2
(b *testing.B)
bn256_test.go:222
Function
BenchmarkGT
(b *testing.B)
bn256_test.go:231
Function
BenchmarkHashG1Size1k
(b *testing.B)
hash_test.go:32
Function
BenchmarkHashG1Size8bytes
(b *testing.B)
hash_test.go:27
Function
BenchmarkHashG1Size8k
(b *testing.B)
hash_test.go:37
Function
BenchmarkPairing
(b *testing.B)
bn256_test.go:240
Method
Conjugate
(a *gfP12)
gfp12.go:78
Function
ExamplePair
()
example_test.go:7
Method
Finalize
Finalize is a linear function from F_p^12 to GT.
bn256.go:387
Method
Frobenius
Frobenius computes (xω+y)^p = x^p ω·ξ^((p-1)/6) + y^p
gfp12.go:91
Method
FrobeniusP2
FrobeniusP2 computes (xω+y)^p² = x^p² ω·ξ^((p²-1)/6) + y^p²
gfp12.go:99
Method
FrobeniusP4
(a *gfP6)
gfp6.go:73
Method
FrobeniusP4
(a *gfP12)
gfp12.go:106
Method
Invert
(a *gfP2)
gfp2.go:134
Method
IsOnCurve
IsOnCurve returns true iff c is on the curve.
twist.go:47
Method
IsOne
()
gfp6.go:42
Method
IsOne
()
gfp12.go:74
Method
Marshal
Marshal converts e into a byte slice.
bn256.go:394
Function
Miller
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
Method
Mul
(a *curvePoint, scalar *big.Int)
curve.go:185
Method
Neg
(a *curvePoint)
curve.go:225
Method
Neg
Neg sets e to -a and then returns e.
bn256.go:215
Method
Neg
Neg sets e to -a and then returns e.
bn256.go:369
Method
Neg
(a *gfP2)
gfp2.go:58
Method
Neg
(a *gfP6)
gfp6.go:46
Method
ScalarBaseMult
ScalarBaseMult sets e to g*k where g is the generator of the group and then returns out.
bn256.go:188
Method
ScalarBaseMult
ScalarBaseMult sets e to g*k where g is the generator of the group and then returns out.
bn256.go:342
Method
ScalarMult
ScalarMult sets e to a*k and then returns e.
bn256.go:197
Method
ScalarMult
ScalarMult sets e to a*k and then returns e.
bn256.go:351
Method
Set
Set sets e to a and then returns e.
bn256.go:224
Method
Set
Set sets e to a and then returns e.
bn256.go:378
Method
SetInfinity
()
twist.go:60
Method
SetOne
()
gfp6.go:31
Method
String
()
curve.go:23
Method
String
()
bn256.go:182
Method
String
()
bn256.go:336
Method
String
()
twist.go:33
Method
String
()
gfp2.go:20
Method
String
()
gfp6.go:13
Method
String
()
gfp12.go:48
Function
TestBilinearity
(t *testing.T)
bn256_test.go:117
Function
TestDirtyUnmarshal
(t *testing.T)
bn256_test.go:201
Function
TestG1
(t *testing.T)
bn256_test.go:10
Function
TestG1Marshal
(t *testing.T)
bn256_test.go:25
Function
TestG2
(t *testing.T)
bn256_test.go:44
Function
TestG2Marshal
(t *testing.T)
bn256_test.go:59
Function
TestGFp
(t *testing.T)
gfp_test.go:55
Function
TestGT
(t *testing.T)
bn256_test.go:78
Function
TestGTMarshal
(t *testing.T)
bn256_test.go:98
Function
TestKnownHashes
(t *testing.T)
hash_test.go:9
Function
TestSelfAddG1
(t *testing.T)
bn256_test.go:165
Function
TestSelfAddG2
(t *testing.T)
bn256_test.go:183
Function
TestTripartiteDiffieHellman
(t *testing.T)
bn256_test.go:133
Method
Unmarshal
Unmarshal sets e to the result of converting the output of Marshal back into a group element and then returns e.
bn256.go:264
Method
Unmarshal
Unmarshal sets e to the result of converting the output of Marshal back into a group element and then returns e.
bn256.go:436
Function
gfpAdd
(c, a, b *gfP)
gfp_generic.go:37
Function
gfpMul
(c, a, b *gfP)
gfp_generic.go:158
Function
gfpNeg
(c, a *gfP)
gfp_generic.go:26
Function
gfpSub
(c, a, b *gfP)
gfp_generic.go:48
← previous
101–161 of 161, ranked by callers