Enum sn_data_types::SecretKey [−][src]
pub enum SecretKey { Ed25519(SecretKey), BlsShare(SerdeSecret<SecretKeyShare>), }
Expand description
Wrapper for different secret key types.
Variants
Ed25519(SecretKey)
Ed25519 secretkey.
BLS secretkey share.
Implementations
Construct a secret key from a hex string
Similar to public key, it is often useful in user facing apps to be able to set your own secret key without depending on both the ed25519_dalek and hex crates just to reimplement this function
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl UnwindSafe for SecretKey