Trait Blinded

Source
pub trait Blinded: Sized {
    type BytesArray;

    // Required methods
    fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>;
    fn to_bytes(&self) -> Self::BytesArray;
}
Expand description

(De)serialization for BlindedPublicKey.

Required Associated Types§

Source

type BytesArray

A bytes array type with the size of the serialized BlindedPublicKey.

Required Methods§

Source

fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>

Parse a BlindedPublicKey from a BytesArray.

Source

fn to_bytes(&self) -> Self::BytesArray

Serialize BlindedPublicKey to a BytesArray.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§