Module 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::DEPLOYOOOR_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§

blind
Blinding factors
constants
Cryptographic constants
contract_id
Contract ID definitions and methods
diffie_hellman
Diffie-Hellman techniques
ecvrf
Elliptic curve VRF (Verifiable Random Function) https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-vrf-04#section-5
func_ref
Function ID definitions and methods
keypair
Keypairs, secret keys, and public keys
merkle_node
Merkle node definitions
mimc_vdf
MiMC VDF https://vitalik.eth.limo/general/2018/07/21/starks_part_3.html
note
Note encryption
pasta_prelude
Convenience module to import all the pasta traits. You still have to import the curves.
pedersen
Pedersen commitment utilities
schnorr
Schnorr signature traits
smt
Sparse Merkle Tree implementation This file provides a native implementation of the Sparse Merkle tree data structure.
util
Miscellaneous utilities