Add CRYPTO_ID to AppKey (#6011)

This commit is contained in:
Rakan Alhneiti
2020-05-13 14:26:31 +02:00
committed by GitHub
parent 7b19d3c4ce
commit eb344a1739
2 changed files with 17 additions and 10 deletions
@@ -38,6 +38,8 @@ pub trait AppKey: 'static + Send + Sync + Sized + CryptoType + Clone {
/// An identifier for this application-specific key type.
const ID: KeyTypeId;
/// The identifier of the crypto type of this application-specific key type.
const CRYPTO_ID: CryptoTypeId;
}
/// Type which implements Hash in std, not when no-std (std variant).