Expand description
Traits and macros for constructing application specific strongly typed crypto wrappers.
Modules§
- ecdsa
- Ecdsa crypto types.
- 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, Signature types which are functionally equivalent to
$pair
, but are new Application-specific types whose identifier is$key_type
. - app_
crypto_ pair - Declares Pair type which is functionally equivalent to
$pair
, but is new Application-specific type whose identifier is$key_type
. - with_
pair - Generate the given code if the pair type is available.
- wrap
- Implement bidirectional
From
and on-wayAsRef
/AsMut
for two types,$inner
and$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.
Traits§
- AppKey
- An application-specific key.
- AppPair
- A application’s key pair.
- AppPublic
- A application’s public key.
- AppSignature
- A application’s signature.
- Bound
ToRuntime AppPublic - Something that bound to a fixed
RuntimeAppPublic
. - Maybe
Hash - Type which implements Hash in std, not when no-std (std variant).
- Runtime
AppPublic - A runtime interface for an application’s public key.
- Runtime
Public - A runtime interface for a public key.