Expand description
Traits and macros for constructing application specific strongly typed crypto wrappers.
Modules§
- bandersnatch
- Bandersnatch VRF application crypto types.
- bls381
- BLS12-381 crypto applications.
- ecdsa
- Ecdsa crypto types.
- ecdsa_
bls381 - ECDSA and BLS12-381 paired crypto applications.
- ed25519
- Ed25519 crypto types.
- key_
types - Known key types; this also functions as a global registry of key types for projects wishing to avoid collisions with each other.
- sr25519
- Sr25519 crypto types.
Macros§
- app_
crypto - Declares
Public,Pair,SignatureandProofOfPossessiontypes which are functionally equivalent to the corresponding types defined by$modulebut are new application-specific types whose identifier is$key_type. - app_
crypto_ pair_ common - Declares
Pairtype which is functionally equivalent to$pair, but is new application-specific type whose identifier is$key_type. It is a common part shared between full_crypto and non full_crypto environments. - with_
pair - Generate the given code if the pair type is available.
- wrap
- Implement bidirectional
Fromand on-wayAsRef/AsMutfor two types,$innerand$outer.
Structs§
- Crypto
Type Id - An identifier for a specific cryptographic algorithm used by a key pair
- KeyType
Id - An identifier for a type of cryptographic key.
Enums§
- Derive
Junction - A since derivation junction description. It is the single parameter used when creating
a new secret key from an existing secret key and, in the case of
SoftRawandSoftIndexa new public key from an existing public key.
Traits§
- AppCrypto
- Application-specific cryptographic object.
- AppPair
- Application-specific key pair.
- AppPublic
- Application-specific public key.
- AppSignature
- Application-specific signature and Proof Of Possession
- Bound
ToRuntime AppPublic - Something that is bound to a fixed
RuntimeAppPublic. - Maybe
Hash - Type which implements Hash in std, not when no-std (std variant).
- Runtime
AppPublic - Runtime interface for an application’s public key.
- Runtime
Public - Runtime interface for a public key.
- Ss58
Codec - Key that can be encoded to/from SS58.