{"id":71557,"library":"substrate-bn","title":"Substrate BN","description":"Pairing cryptography with the Barreto-Naehrig curve for use in blockchain and zero-knowledge proof systems.","status":"active","version":"0.6.0","language":"rust","source_language":null,"source_url":"https://github.com/paritytech/bn","tags":["cryptography","pairing","bn-curve","blockchain","zero-knowledge"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsubstrate-bn = \"0.6.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add substrate-bn","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"G1","correct":"use substrate_bn::G1;"}],"quickstart":{"code":"use substrate_bn::G1;\n\nfn main() {\n    let g1 = G1::one();\n    println!(\"G1 generator: {:?}\", g1);\n}","lang":"rust","description":"Creates the G1 group generator point on the BN curve."},"warnings":[],"env_vars":null,"search_vec":"'barreto':8 'barreto-naehrig':7 'blockchain':14,26 'bn':2,24 'bn-curv':23 'cryptographi':4,21 'curv':10,25 'knowledg':18,29 'naehrig':9 'pair':3,22 'proof':19 'substrat':1 'system':20 'use':12 'zero':17,28 'zero-knowledg':16,27","created_at":"2026-06-17T18:28:37.695156+00:00","updated_at":"2026-06-17T18:28:37.695156+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/paritytech/bn","github":"https://github.com/paritytech/bn","docs":"https://docs.rs/substrate-bn/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}