Module crypto

Module crypto 

Source

Structs§

Blake3_192
192-bit output blake3 hasher.
Blake3_256
256-bit output blake3 hasher.
MerklePath
A merkle path container, composed of a sequence of nodes of a Merkle tree.
MerkleStore
An in-memory data store for Merkelized data.
MerkleTree
A fully-balanced binary Merkle tree (i.e., a tree where the number of leaves is a power of two).
NodeIndex
Address to an arbitrary node in a binary tree using level order form.
PartialMerkleTree
A partial Merkle tree with NodeIndex keys and 4-element Word leaf values. Partial Merkle Tree allows to create Merkle Tree by providing Merkle paths of different lengths.
Poseidon2
Implementation of the Poseidon2 hash function with 256-bit output.
Rpo256
Implementation of the Rescue Prime Optimized hash function with 256-bit output.
RpoRandomCoin
A simplified version of the SPONGE_PRG reseedable pseudo-random number generator algorithm described in https://eprint.iacr.org/2011/499.pdf.
Rpx256
Implementation of the Rescue Prime eXtension hash function with 256-bit output.
RpxRandomCoin
A simplified version of the SPONGE_PRG reseedable pseudo-random number generator algorithm described in https://eprint.iacr.org/2011/499.pdf.
SimpleSmt
A sparse Merkle tree with 64-bit keys and 4-element leaf values, without compaction.
WinterRandomCoin
Pseudo-random element generator for finite fields, which is a default implementation of the RandomCoin trait.

Enums§

MerkleError

Traits§

ElementHasher
Defines a cryptographic hash function for hashing field elements.
Hasher
Defines a cryptographic hash function.
RandomCoin
Pseudo-random element generator for finite fields.