pub type ProtocolSignerVerificationKeySignature = ProtocolKey<Sum6KesSig>;
Expand description
Wrapper of KES:Sum6KesSig to add serialization utilities.
Aliased Type§
struct ProtocolSignerVerificationKeySignature { /* private fields */ }
Implementations
Source§impl<T> ProtocolKey<T>where
T: Serialize + DeserializeOwned,
impl<T> ProtocolKey<T>where
T: Serialize + DeserializeOwned,
Sourcepub fn from_json_hex(hex_string: &str) -> StdResult<Self>
pub fn from_json_hex(hex_string: &str) -> StdResult<Self>
Create an instance from a JSON hex representation
Sourcepub fn to_json_hex(&self) -> StdResult<String>
pub fn to_json_hex(&self) -> StdResult<String>
Create a JSON hash representation of the key
Sourcepub fn key_to_json_hex(key: &T) -> StdResult<String>
pub fn key_to_json_hex(key: &T) -> StdResult<String>
Create a JSON hash representation of the given key
Sourcepub fn write_json_hex_to_file(&self, path: &Path) -> StdResult<()>
pub fn write_json_hex_to_file(&self, path: &Path) -> StdResult<()>
Write to file in JSON hex format
Sourcepub fn read_json_hex_from_file(path: &Path) -> StdResult<Self>
pub fn read_json_hex_from_file(path: &Path) -> StdResult<Self>
Read from file in JSON hex format
Trait Implementations
Source§impl<T> Clone for ProtocolKey<T>
impl<T> Clone for ProtocolKey<T>
Source§fn clone(&self) -> ProtocolKey<T>
fn clone(&self) -> ProtocolKey<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for ProtocolKey<T>
impl<T> Debug for ProtocolKey<T>
Source§impl<T> Deref for ProtocolKey<T>where
T: Serialize + DeserializeOwned,
impl<T> Deref for ProtocolKey<T>where
T: Serialize + DeserializeOwned,
Source§impl<'de, T> Deserialize<'de> for ProtocolKey<T>
impl<'de, T> Deserialize<'de> for ProtocolKey<T>
Source§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