Enum safe_network::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
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V