Expand description
Cryptographic types and operations on them
Modules§
- gens
testingorgensGenerators for asymmetric key types
Enums§
- Cryptographic errors.
- Error
Ext stdortestingCryptographic errors extended with some additional variants. - A type of hashing algorithm.
- A public asymmetric key.
- A secret or private asymmetric key.
- A signature of given data.
Constants§
- The number of bytes in a Blake2b hash
- Tag for ed25519 variant.
- Tag for secp256k1 variant.
- Public key for system account.
- Tag for system variant.
Traits§
- Operations on asymmetric cryptographic type.
Functions§
- Generates an Ed25519 keypair using the operating system’s cryptographically secure random number generator.
- Attempts to recover a Secp256k1
PublicKeyfrom a message and a signature over it. - Signs the given message using the given key pair.
- Verifies the signature of the given message against the given public key.