pub struct VRFVkey(/* private fields */);Implementations§
source§impl VRFVkey
impl VRFVkey
pub const BYTE_COUNT: usize = 32usize
pub fn to_bech32(&self, prefix: &str) -> Result<String, CryptoError>
pub fn from_bech32(bech_str: &str) -> Result<VRFVkey, CryptoError>
pub fn to_hex(&self) -> String
pub fn from_hex(input: &str) -> Result<VRFVkey, CryptoError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for VRFVkey
impl<'de> Deserialize<'de> for VRFVkey
source§fn deserialize<D>(
deserializer: D
) -> Result<VRFVkey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<VRFVkey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for VRFVkey
impl JsonSchema for VRFVkey
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 VRFVkey
impl Ord for VRFVkey
source§impl PartialEq for VRFVkey
impl PartialEq for VRFVkey
source§impl PartialOrd for VRFVkey
impl PartialOrd for VRFVkey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl RawBytesEncoding for VRFVkey
impl RawBytesEncoding for VRFVkey
fn to_raw_bytes(&self) -> &[u8] ⓘ
fn from_raw_bytes(bytes: &[u8]) -> Result<VRFVkey, CryptoError>
fn to_raw_hex(&self) -> String
fn from_raw_hex(hex_str: &str) -> Result<Self, CryptoError>where
Self: Sized,
source§impl Serialize for VRFVkey
impl Serialize for VRFVkey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for VRFVkey
impl Eq for VRFVkey
impl StructuralPartialEq for VRFVkey
Auto Trait Implementations§
impl Freeze for VRFVkey
impl RefUnwindSafe for VRFVkey
impl Send for VRFVkey
impl Sync for VRFVkey
impl Unpin for VRFVkey
impl UnwindSafe for VRFVkey
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more