Type Alias ProtocolSignerVerificationKeySignature

Source
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>

Source

pub fn new(key: T) -> Self

Create a ProtocolKey from the given key

Source

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

Create an instance from a JSON hex representation

Source

pub fn to_json_hex(&self) -> StdResult<String>

Create a JSON hash representation of the key

Source

pub fn key_to_json_hex(key: &T) -> StdResult<String>

Create a JSON hash representation of the given key

Source

pub fn write_json_hex_to_file(&self, path: &Path) -> StdResult<()>

Write to file in JSON hex format

Source

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>

Source§

fn clone(&self) -> ProtocolKey<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for ProtocolKey<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Deref for ProtocolKey<T>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<'de, T> Deserialize<'de> for ProtocolKey<T>

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<Sum6KesSig> for ProtocolKey<Sum6KesSig>

Source§

fn from(value: Sum6KesSig) -> Self

Converts to this type from the input type.
Source§

impl<T> PartialEq for ProtocolKey<T>

Source§

fn eq(&self, other: &ProtocolKey<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> Serialize for ProtocolKey<T>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<T> TryFrom<&str> for ProtocolKey<T>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T> TryFrom<String> for ProtocolKey<T>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: String) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T> Copy for ProtocolKey<T>

Source§

impl<T> Eq for ProtocolKey<T>

Source§

impl<T> StructuralPartialEq for ProtocolKey<T>