docs.rs failed to build barretenberg-rs-0.0.1-commit.8227e42
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
barretenberg-rs
Rust bindings for Barretenberg, a C++ cryptographic library for zero-knowledge proofs.
Features
- PipeBackend: Spawns the
bbbinary and communicates via msgpack over stdin/stdout - FfiBackend: Links directly to static libraries for maximum performance (requires
ffifeature) - Async support with Tokio
Installation
[]
= "0.1"
Feature Flags
native(default): Enables PipeBackend with Tokio async runtimeffi: Enables FfiBackend with static linking to libbarretenbergasync: Enables async API support
Usage
PipeBackend (default)
Requires the bb binary to be available. Download from Barretenberg releases.
use ;
FfiBackend (requires ffi feature)
use ;
Supported Targets
The FFI backend provides pre-built static libraries for:
- Linux x86_64 (glibc)
- Linux arm64 (glibc)
- macOS x86_64
- macOS arm64 (Apple Silicon)
- iOS arm64 (device)
- iOS arm64 Simulator (Apple Silicon)
API
The BarretenbergApi exposes cryptographic primitives including:
- Hashing: Blake2s, Blake3, Poseidon2, Pedersen, SHA256, Keccak256
- Signatures: ECDSA (secp256k1, secp256r1), Schnorr
- Curve operations: BN254, Grumpkin, secp256k1
- Encryption: AES-128-CBC
- Proof systems: UltraHonk, MegaHonk, ClientIVC
License
Apache-2.0