Enum safe_network::types::SecretKey
source · [−]pub enum SecretKey {
Ed25519(SecretKey),
BlsShare(SerdeSecret<SecretKeyShare>),
}
Expand description
Wrapper for different secret key types.
Variants
Ed25519(SecretKey)
Ed25519 secretkey.
BlsShare(SerdeSecret<SecretKeyShare>)
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
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more