Macro sp_application_crypto::app_crypto[][src]

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

Declares Public, Pair, Signature types which are functionally equivalent to $pair, 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"_uba"));