Registry / crypto / umbracle-go-eth-bn256

umbracle-go-eth-bn256

JSON →
library0.0.0-20230125114011-47cb310d9b0bgogounverified

Implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve for bilinear group cryptography.

go get github.com/umbracle/go-eth-bn256
INSTALL
IMPORT
SIG · UMBRACLE-GO-ETH-BN
U
umbracle-go-eth-bn256
cryptogov0.0.0-20230125114011-47cb310d9b0b
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bn256
github.com/umbracle/go-eth-bn256

Creates a G1 point and performs scalar multiplication.

package main import ( "fmt" "github.com/umbracle/go-eth-bn256" ) func main() { g1 := new(bn256.G1).ScalarBaseMult(big.NewInt(1)) fmt.Println(g1) }
Debug
Known issues
breakingSecurity level downgraded; no longer 128-bit secure due to advances in attacks.
fix
Use a more modern curve (e.g., BLS12-381) for new projects.
affects: all
Upgrade
Version history
0.0.0-20230125114011-47cb310d9b0blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
umbracle-go-eth-bn256 — go get umbracle-go-eth-bn256 · libregistry