Module darkfi_sdk::crypto
source · Expand description
Crypto-related definitions
Re-exports§
pub use blind::BaseBlind;
pub use blind::Blind;
pub use blind::ScalarBlind;
pub use util::poseidon_hash;
pub use keypair::Keypair;
pub use keypair::PublicKey;
pub use keypair::SecretKey;
pub use contract_id::ContractId;
pub use contract_id::DAO_CONTRACT_ID;
pub use contract_id::DAO_CONTRACT_ID;
pub use contract_id::DEPLOYOOOR_CONTRACT_ID;
pub use contract_id::DEPLOYOOOR_CONTRACT_ID;
pub use contract_id::MONEY_CONTRACT_ID;
pub use contract_id::MONEY_CONTRACT_ID;
pub use func_ref::FuncId;
pub use func_ref::FuncRef;
pub use merkle_node::MerkleNode;
pub use merkle_node::MerkleTree;
pub use pedersen::pedersen_commitment_base;
pub use pedersen::pedersen_commitment_u64;
Modules§
- Blinding factors
- Cryptographic constants
- Contract ID definitions and methods
- Diffie-Hellman techniques
- Elliptic curve VRF (Verifiable Random Function) https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-vrf-04#section-5
- Function ID definitions and methods
- Keypairs, secret keys, and public keys
- Merkle node definitions
- Note encryption
- Convenience module to import all the pasta traits. You still have to import the curves.
- Pedersen commitment utilities
- Schnorr signature traits
- Sparse Merkle Tree implementation This file provides a native implementation of the Sparse Merkle tree data structure.
- Miscellaneous utilities