Module sr25519
Expand description
An sr25519 keypair implementation.
Modules§
- dev
- Dev accounts, helpful for testing but not to be used in production, since the secret keys are known.
Structs§
- Keypair
- An sr25519 keypair implementation. While the API is slightly different, the logic for
this has been taken from
sp_core::sr25519
and we test against this to ensure conformity. - Public
Key - The public key for an
Keypair
key pair. This is equivalent to a SubstrateAccountId32
. - Signature
- A signature generated by
Keypair::sign()
. These bytes are equivalent to a SubstrateMultiSignature::sr25519(bytes)
.
Enums§
- Error
- An error handed back if creating a keypair fails.
Functions§
Type Aliases§
- Secret
KeyBytes - Seed bytes used to generate a key pair.