Module crypto

Source
Expand description

A set of types and functions related to cryptography, that are widely used in the entire Simperby project.

Structs§

Hash256
A cryptographic hash.
HexSerializedBytes
HexSerializedVec
PrivateKey
A private key.
PublicKey
A public key.
Signature
A cryptographic signature.
TypedSignature
A signature that is explicitly marked with the type of the signed data.

Enums§

CryptoError

Traits§

ToHash256

Functions§

check_keypair_match
Checks whether the given public and private keys match.
generate_keypair
Generates a new keypair using the seed.
generate_keypair_random
Generates a new keypair randomly