Skip to main content

ConvertFromByteType

Trait ConvertFromByteType 

Source
pub trait ConvertFromByteType<T> {
    type Error;

    // Required method
    fn convert_from_byte_type(bytes: &T) -> Result<Self, Self::Error>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn convert_from_byte_type(bytes: &T) -> Result<Self, Self::Error>
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ConvertFromByteType<CommitmentSignatureBytes> for CommitmentSignature<RistrettoPublicKey, RistrettoSecretKey>

Source§

impl ConvertFromByteType<PedersenCommitmentBytes> for CompressedCommitment<RistrettoPublicKey>

Source§

impl ConvertFromByteType<PedersenCommitmentBytes> for PedersenCommitment

Source§

impl ConvertFromByteType<RistrettoPublicKeyBytes> for CompressedKey<RistrettoPublicKey>

Source§

impl ConvertFromByteType<RistrettoPublicKeyBytes> for RistrettoPublicKey

Source§

impl<H: DomainSeparation> ConvertFromByteType<SchnorrSignatureBytes> for CompressedSchnorrSignature<RistrettoPublicKey, RistrettoSecretKey, H>

Source§

impl<H: DomainSeparation> ConvertFromByteType<SchnorrSignatureBytes> for SchnorrSignature<RistrettoPublicKey, RistrettoSecretKey, H>

Implementors§