mithril_common::crypto_helper

Type Alias ProtocolGenesisSignature

source
pub type ProtocolGenesisSignature = ProtocolKey<Signature>;
Expand description

Wrapper of Ed25519:Signature.

Aliased Type§

struct ProtocolGenesisSignature { /* private fields */ }

Implementations§

source§

impl ProtocolGenesisSignature

source

pub fn from_bytes_hex(hex_string: &str) -> StdResult<Self>

Create an instance from a bytes hex representation

source

pub fn from_bytes(bytes: &[u8]) -> StdResult<Self>

Create an instance from a bytes representation

source

pub fn to_bytes_hex(&self) -> String

Create a bytes hash representation of the key

source

pub fn key_to_bytes_hex(key: &Signature) -> String

Create a bytes hash representation of the given key