Expand description
Define the cryptographic primitives used by the Linera protocol.
Structs§
- Crypto
Hash - A Keccak256 value.
- Crypto
Hash Vec - A vector of cryptographic hashes. This is used to represent a hash of a list of hashes.
- Ed25519
Public Key - An Ed25519 signature public key.
- Ed25519
Secret Key - An Ed25519 secret key.
- Ed25519
Signature - An Ed25519 signature.
- EvmPublic
Key - A secp256k1 public key.
- EvmSecret
Key - A secp256k1 secret key.
- EvmSignature
- A secp256k1 signature.
- InMemory
Signer - In-memory signer.
- Secp256k1
Public Key - A secp256k1 public key.
- Secp256k1
Secret Key - A secp256k1 secret key.
- Secp256k1
Signature - A secp256k1 signature.
- Test
String - A BCS-signable struct for testing.
Enums§
- Account
Public Key - The public key of a chain owner. The corresponding private key is allowed to propose blocks on the chain and transfer account’s tokens.
- Account
Secret Key - The private key of a chain owner.
- Account
Signature - The signature of a chain owner.
- Crypto
Error - Error type for cryptographic errors.
- Signature
Scheme - Signature scheme used for the public key.
Traits§
- BcsHashable
- Activate the blanket implementation of
Hashable
based on serde and BCS. - BcsSignable
- Activate the blanket implementation of
Signable
based on serde and BCS. - Crypto
Rng - Wrapper around
rand::CryptoRng
andrand::RngCore
. - HasType
Name - Something that we know how to hash and sign.
- Hashable
- Something that we know how to hash.
- Signer
- A trait for signing keys.
Functions§
- u64_
array_ to_ be_ bytes - Returns the bytes that represent the
integers
in big-endian.
Type Aliases§
- Validator
Keypair - The key pair of a validator.
- Validator
Public Key - The public key of a validator.
- Validator
Secret Key - The private key of a validator.
- Validator
Signature - The signature of a validator.