Macro gclient::ext::sp_runtime::app_crypto::app_crypto

macro_rules! app_crypto {
    ($module:ident, $key_type:expr) => { ... };
}
Expand description

Declares Public, Pair and Signature types which are functionally equivalent to the corresponding types defined by $module but are new application-specific types whose identifier is $key_type.

// Declare a new set of crypto types using ed25519 logic that identifies as `KeyTypeId`
// of value `b"fuba"`.
app_crypto!(ed25519, KeyTypeId(*b"fuba"));