pub struct KESVkey(/* private fields */);
Implementations§
Source§impl KESVkey
impl KESVkey
pub const BYTE_COUNT: usize = 32usize
pub fn to_bech32(&self, prefix: &str) -> Result<String, CryptoError>
pub fn from_bech32(bech_str: &str) -> Result<KESVkey, CryptoError>
pub fn to_hex(&self) -> String
pub fn from_hex(input: &str) -> Result<Self, DeserializeError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KESVkey
impl<'de> Deserialize<'de> for KESVkey
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
Source§impl JsonSchema for KESVkey
impl JsonSchema for KESVkey
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Ord for KESVkey
impl Ord for KESVkey
Source§impl PartialOrd for KESVkey
impl PartialOrd for KESVkey
Source§impl RawBytesEncoding for KESVkey
impl RawBytesEncoding for KESVkey
fn to_raw_bytes(&self) -> &[u8] ⓘ
fn from_raw_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>
fn to_raw_hex(&self) -> String
fn from_raw_hex(hex_str: &str) -> Result<Self, DeserializeError>where
Self: Sized,
impl Copy for KESVkey
impl Eq for KESVkey
impl StructuralPartialEq for KESVkey
Auto Trait Implementations§
impl Freeze for KESVkey
impl RefUnwindSafe for KESVkey
impl Send for KESVkey
impl Sync for KESVkey
impl Unpin for KESVkey
impl UnwindSafe for KESVkey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more