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§
Sourcetype BytesArray
type BytesArray
A bytes array type with the size of the serialized BlindedPublicKey.
Required Methods§
Sourcefn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>
fn from_bytes(bytes: &Self::BytesArray) -> Result<Self, Error>
Parse a BlindedPublicKey from a BytesArray.
Sourcefn to_bytes(&self) -> Self::BytesArray
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.