Crate sp_application_crypto
source ·Expand description
Traits and macros for constructing application specific strongly typed crypto wrappers.
Modules§
- Bandersnatch VRF application crypto types.
- BLS12-381 crypto applications.
- Ecdsa crypto types.
- ECDSA and BLS12-381 paired crypto applications.
- Ed25519 crypto types.
- Known key types; this also functions as a global registry of key types for projects wishing to avoid collisions with each other.
- Sr25519 crypto types.
Macros§
- Declares
Public
,Pair
andSignature
types which are functionally equivalent to the corresponding types defined by$module
but are new application-specific types whose identifier is$key_type
. - Declares
Pair
type 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. - Generate the given code if the pair type is available.
- Implement bidirectional
From
and on-wayAsRef
/AsMut
for two types,$inner
and$outer
.
Structs§
- An identifier for a specific cryptographic algorithm used by a key pair
- An identifier for a type of cryptographic key.
Enums§
- 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
SoftRaw
andSoftIndex
a new public key from an existing public key.
Traits§
- Application-specific cryptographic object.
- Application-specific key pair.
- Application-specific public key.
- Application-specific signature.
- Something that is bound to a fixed
RuntimeAppPublic
. - Type which implements Hash in std, not when no-std (std variant).
- Runtime interface for an application’s public key.
- Runtime interface for a public key.
- Key that can be encoded to/from SS58.