pub trait FromBytes {
    // Required method
    fn read_le<R>(reader: R) -> Result<Self, Error>
       where R: Read,
             Self: Sized;

    // Provided method
    fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>
       where Self: Sized { ... }
}

Required Methods§

source

fn read_le<R>(reader: R) -> Result<Self, Error>where R: Read, Self: Sized,

Reads Self from reader as little-endian bytes.

Provided Methods§

source

fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>where Self: Sized,

Returns Self from a byte array in little-endian order.

Implementations on Foreign Types§

source§

impl<P> FromBytes for Projective<P>where P: TwistedEdwardsParameters,

source§

fn read_le<R>(reader: R) -> Result<Projective<P>, Error>where R: Read,

source§

impl<P> FromBytes for Projective<P>where P: ShortWeierstrassParameters,

source§

fn read_le<R>(reader: R) -> Result<Projective<P>, Error>where R: Read,

source§

impl<P> FromBytes for G2Prepared<P>where P: Bls12Parameters,

source§

fn read_le<R>(reader: R) -> Result<G2Prepared<P>, Error>where R: Read,

source§

impl<P> FromBytes for Affine<P>where P: TwistedEdwardsParameters,

source§

fn read_le<R>(reader: R) -> Result<Affine<P>, Error>where R: Read,

source§

impl<P> FromBytes for G1Prepared<P>where P: Bls12Parameters,

source§

fn read_le<R>(reader: R) -> Result<G1Prepared<P>, Error>where R: Read,

source§

impl<P> FromBytes for Affine<P>where P: ShortWeierstrassParameters,

source§

fn read_le<R>(reader: R) -> Result<Affine<P>, Error>where R: Read,

source§

impl<P> FromBytes for Fp6<P>where P: Fp6Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp6<P>, Error>where R: Read,

source§

impl<P> FromBytes for Fp12<P>where P: Fp12Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp12<P>, Error>where R: Read,

source§

impl<P> FromBytes for Fp384<P>where P: Fp384Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp384<P>, Error>where R: Read,

source§

impl<P> FromBytes for Fp256<P>where P: Fp256Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp256<P>, Error>where R: Read,

source§

impl<P> FromBytes for Fp2<P>where P: Fp2Parameters,

source§

fn read_le<R>(reader: R) -> Result<Fp2<P>, Error>where R: Read,

source§

impl FromBytes for i128

source§

fn read_le<R>(reader: R) -> Result<i128, Error>where R: Read,

source§

impl FromBytes for u8

source§

fn read_le<R>(reader: R) -> Result<u8, Error>where R: Read,

source§

impl FromBytes for u16

source§

fn read_le<R>(reader: R) -> Result<u16, Error>where R: Read,

source§

impl FromBytes for ()

source§

fn read_le<R>(_bytes: R) -> Result<(), Error>where R: Read,

source§

impl FromBytes for i8

source§

fn read_le<R>(reader: R) -> Result<i8, Error>where R: Read,

source§

impl FromBytes for i16

source§

fn read_le<R>(reader: R) -> Result<i16, Error>where R: Read,

source§

impl<const N: usize> FromBytes for [u8; N]

source§

fn read_le<R>(reader: R) -> Result<[u8; N], Error>where R: Read,

source§

impl<const N: usize> FromBytes for [u32; N]

source§

fn read_le<R>(reader: R) -> Result<[u32; N], Error>where R: Read,

source§

impl<const N: usize> FromBytes for [u16; N]

source§

fn read_le<R>(reader: R) -> Result<[u16; N], Error>where R: Read,

source§

impl FromBytes for i64

source§

fn read_le<R>(reader: R) -> Result<i64, Error>where R: Read,

source§

impl<L, R> FromBytes for (L, R)where L: FromBytes, R: FromBytes,

source§

fn read_le<Reader>(reader: Reader) -> Result<(L, R), Error>where Reader: Read,

source§

impl FromBytes for u64

source§

fn read_le<R>(reader: R) -> Result<u64, Error>where R: Read,

source§

impl<const N: usize> FromBytes for [u64; N]

source§

fn read_le<R>(reader: R) -> Result<[u64; N], Error>where R: Read,

source§

impl FromBytes for u32

source§

fn read_le<R>(reader: R) -> Result<u32, Error>where R: Read,

source§

impl FromBytes for u128

source§

fn read_le<R>(reader: R) -> Result<u128, Error>where R: Read,

source§

impl FromBytes for i32

source§

fn read_le<R>(reader: R) -> Result<i32, Error>where R: Read,

source§

impl FromBytes for bool

source§

fn read_le<R>(reader: R) -> Result<bool, Error>where R: Read,

§

impl<E> FromBytes for Field<E>where E: Environment,

§

fn read_le<R>(reader: R) -> Result<Field<E>, Error>where R: Read,

Reads the field from a buffer.

§

impl<E> FromBytes for Boolean<E>where E: Environment,

§

fn read_le<R>(reader: R) -> Result<Boolean<E>, Error>where R: Read,

Reads the boolean from a buffer.

§

impl<E> FromBytes for Group<E>where E: Environment,

§

fn read_le<R>(reader: R) -> Result<Group<E>, Error>where R: Read,

Reads the group from a buffer.

§

impl<E> FromBytes for Scalar<E>where E: Environment,

§

fn read_le<R>(reader: R) -> Result<Scalar<E>, Error>where R: Read,

Reads the scalar from a buffer.

§

impl<E, I> FromBytes for Integer<E, I>where E: Environment, I: IntegerType,

§

fn read_le<R>(reader: R) -> Result<Integer<E, I>, Error>where R: Read,

Reads the integer from a buffer.

source§

impl<E> FromBytes for CircuitVerifyingKey<E>where E: PairingEngine,

source§

fn read_le<R>(r: R) -> Result<CircuitVerifyingKey<E>, Error>where R: Read,

source§

impl<E> FromBytes for KZGProof<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<KZGProof<E>, Error>where R: Read,

source§

impl<E> FromBytes for KZGRandomness<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<KZGRandomness<E>, Error>where R: Read,

source§

impl<E> FromBytes for VerifierKey<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<VerifierKey<E>, Error>where R: Read,

source§

impl<E, MM> FromBytes for CircuitProvingKey<E, MM>where E: PairingEngine, MM: MarlinMode,

source§

fn read_le<R>(reader: R) -> Result<CircuitProvingKey<E, MM>, Error>where R: Read,

source§

impl<E> FromBytes for Proof<E>where E: PairingEngine,

source§

fn read_le<R>(r: R) -> Result<Proof<E>, Error>where R: Read,

source§

impl<E> FromBytes for BatchLCProof<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<BatchLCProof<E>, Error>where R: Read,

source§

impl<E> FromBytes for KZGCommitment<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<KZGCommitment<E>, Error>where R: Read,

source§

impl<E> FromBytes for CommitterKey<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<CommitterKey<E>, Error>where R: Read,

source§

impl<E> FromBytes for UniversalParams<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<UniversalParams<E>, Error>where R: Read,

source§

impl<E> FromBytes for Certificate<E>where E: PairingEngine,

source§

fn read_le<R>(r: R) -> Result<Certificate<E>, Error>where R: Read,

source§

impl<E> FromBytes for PowersOfG<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<PowersOfG<E>, Error>where R: Read,

Reads the powers from the buffer.

source§

impl<E> FromBytes for PowersOfBetaG<E>where E: PairingEngine,

source§

fn read_le<R>(reader: R) -> Result<PowersOfBetaG<E>, Error>where R: Read,

Reads the powers from the buffer.

source§

impl<E, const DEPTH: u8> FromBytes for MerklePath<E, DEPTH>where E: Environment,

source§

fn read_le<R>(reader: R) -> Result<MerklePath<E, DEPTH>, Error>where R: Read,

Reads in a Merkle path from a buffer.

Implementors§

source§

impl FromBytes for BigInteger256

source§

impl FromBytes for BigInteger384

source§

impl<F: FieldTrait, const PREFIX: u16> FromBytes for AleoID<F, PREFIX>

source§

impl<T: Clone + Debug + ToBytes + FromBytes + PartialEq + Eq + Sync + Send, const PREFIX: u32, const SIZE_IN_DATA_BYTES: usize> FromBytes for AleoObject<T, PREFIX, SIZE_IN_DATA_BYTES>