Registry / crypto / groth16-solana

groth16-solana

JSON →
library0.2.0rscratesunverified

Groth16 verification using Solana alt_bn128 syscalls for zero-knowledge proofs.

# Cargo.toml [dependencies] groth16-solana = "0.2.0"
INSTALL
IMPORT
SIG · GROTH16-SOLANA
G
groth16-solana
cryptorustv0.2.0
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.

verify_proof
use groth16_solana::verify_proof;

Verifies a Groth16 proof using Solana's alt_bn128 syscalls.

use groth16_solana::verify_proof; fn main() { // Example verification (requires valid proof data) let result = verify_proof(&[], &[], &[]); println!("{:?}", result); }
Debug
Known issues
gotchaRequires Solana runtime environment with alt_bn128 syscall support
fix
Only use on Solana blockchain or with a compatible simulator
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Meta
1
Resources
groth16-solana — cargo add groth16-solana · libregistry