Skip to main content

Crate plonky2_por

Crate plonky2_por 

Source

Re-exports§

pub use circuits::recursive_circuit::RecursiveCircuit;
pub use utils::logger::format_error;
pub use types::FinalProof;
pub use types::InclusionProof;
pub use types::Ledger;
pub use types::LedgerDecimals;
pub use types::MerkleProof;
pub use merkle_tree::MerkleTree;
pub use merkle_tree::Node;
pub use config::BATCH_SIZE;
pub use config::RECURSIVE_SIZE;
pub use config::C;
pub use config::D;
pub use config::F;
pub use config::H;

Modules§

circuits
config
core
custom_serializer
merkle_tree
types
utils

Macros§

log_error
log_info
log_success
log_warning

Structs§

HashOut
Represents a ~256 bit hash output.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
ProofWithPublicInputs
VerifierCircuitData
Circuit data required by the prover.

Traits§

GenericHashOut

Functions§

assert_config
get_ledger_values_from_file
prove_from_data
Feature: Prove - Generates a global proof of reserves from ledger data
prove_from_file
Feature: Prove - Generates a global proof of reserves from a ledger file
prove_inclusion_batched_from_data
Feature: Prove inclusion (all users batched) - Generates inclusion proofs for all users in batches from data
prove_inclusion_batched_from_files
Feature: Prove inclusion (all files batched) - Generates inclusion proofs for all users in batches from files
prove_inclusion_from_data
Feature: Prove inclusion (single user) - Generates an inclusion proof for a specific user from data
prove_inclusion_from_files
Feature: Prove inclusion (single file) - Generates an inclusion proof for a specific user from files
verify_from_files
Verify a global proof of reserves from files