Module linera_base::crypto
source · Expand description
Define the cryptographic primitives used by the Linera protocol.
Structs§
- The public key of a chain owner. The corresponding private key is allowed to propose blocks on the chain and transfer account’s tokens.
- The private key of a chain owner.
- The signature of a chain owner.
- A Keccak256 value.
- A vector of cryptographic hashes. This is used to represent a hash of a list of hashes.
- A BCS-signable struct for testing.
Enums§
- Error type for cryptographic errors.
Traits§
- Activate the blanket implementation of
Hashable
based on serde and BCS. - Activate the blanket implementation of
Signable
based on serde and BCS. - Wrapper around
rand::CryptoRng
andrand::RngCore
. - Something that we know how to hash and sign.
- Something that we know how to hash.
Type Aliases§
- The key pair of a validator.
- The public key of a validator.
- The private key of a validator.
- The signature of a validator.