Type Alias mithril_common::crypto_helper::ProtocolGenesisSignature
source · pub type ProtocolGenesisSignature = ProtocolKey<Signature>;
Expand description
Wrapper of Ed25519:Signature.
Aliased Type§
struct ProtocolGenesisSignature { /* private fields */ }
Implementations§
source§impl ProtocolGenesisSignature
impl ProtocolGenesisSignature
sourcepub fn from_bytes_hex(hex_string: &str) -> StdResult<Self>
pub fn from_bytes_hex(hex_string: &str) -> StdResult<Self>
Create an instance from a bytes hex representation
sourcepub fn from_bytes(bytes: &[u8]) -> StdResult<Self>
pub fn from_bytes(bytes: &[u8]) -> StdResult<Self>
Create an instance from a bytes representation
sourcepub fn to_bytes_hex(&self) -> String
pub fn to_bytes_hex(&self) -> String
Create a bytes hash representation of the key
sourcepub fn key_to_bytes_hex(key: &Signature) -> String
pub fn key_to_bytes_hex(key: &Signature) -> String
Create a bytes hash representation of the given key