Module darkfi_sdk::crypto
source · Expand description
Crypto-related definitions
Re-exports
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::CONSENSUS_CONTRACT_ID;
pub use contract_id::CONSENSUS_CONTRACT_ID;
pub use contract_id::DAO_CONTRACT_ID;
pub use contract_id::DAO_CONTRACT_ID;
pub use contract_id::MONEY_CONTRACT_ID;
pub use contract_id::MONEY_CONTRACT_ID;
pub use token_id::TokenId;
pub use token_id::DARK_TOKEN_ID;
pub use token_id::DARK_TOKEN_ID;
pub use merkle_node::MerkleNode;
pub use merkle_node::MerkleTree;
pub use nullifier::Nullifier;
pub use pedersen::pedersen_commitment_base;
pub use pedersen::pedersen_commitment_u64;
pub use pedersen::ValueBlind;
pub use pedersen::ValueCommit;
pub use incrementalmerkletree;
Modules
- 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
- Keypairs, secret keys, and public keys
- Merkle node definitions
- Note encryption
- Nullifier definitions
- The Pallas and iso-Pallas elliptic curve groups.
- 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.
- Token ID definitions and methods
- Miscellaneous utilities
- The Vesta and iso-Vesta elliptic curve groups.
Structs
- A type representing the position of a leaf in a Merkle tree.