pub trait ToBytes {
// Required method
fn write_le<W>(&self, writer: W) -> Result<(), Error>
where W: Write,
Self: Sized;
// Provided method
fn to_bytes_le(&self) -> Result<Vec<u8>, Error>
where Self: Sized { ... }
}Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ToBytes for ConsensusVersion
impl ToBytes for ConsensusVersion
Source§impl ToBytes for ECDSASignature
impl ToBytes for ECDSASignature
Source§impl ToBytes for RecoveryID
impl ToBytes for RecoveryID
Source§impl ToBytes for SocketAddr
impl ToBytes for SocketAddr
Source§impl ToBytes for VarunaVersion
impl ToBytes for VarunaVersion
Source§impl<C> ToBytes for LabeledCommitment<C>where
C: CanonicalSerialize + ToBytes,
impl<C> ToBytes for LabeledCommitment<C>where
C: CanonicalSerialize + ToBytes,
Source§impl<E, SM> ToBytes for CircuitProvingKey<E, SM>where
E: PairingEngine,
SM: SNARKMode,
impl<E, SM> ToBytes for CircuitProvingKey<E, SM>where
E: PairingEngine,
SM: SNARKMode,
Source§impl<E, const DEPTH: u8> ToBytes for MerklePath<E, DEPTH>where
E: Environment,
impl<E, const DEPTH: u8> ToBytes for MerklePath<E, DEPTH>where
E: Environment,
Source§impl<E> ToBytes for BatchLCProof<E>where
E: PairingEngine,
impl<E> ToBytes for BatchLCProof<E>where
E: PairingEngine,
Source§impl<E> ToBytes for Certificate<E>where
E: PairingEngine,
impl<E> ToBytes for Certificate<E>where
E: PairingEngine,
Source§impl<E> ToBytes for CircuitVerifyingKey<E>where
E: PairingEngine,
impl<E> ToBytes for CircuitVerifyingKey<E>where
E: PairingEngine,
Source§impl<E> ToBytes for CommitterKey<E>where
E: PairingEngine,
impl<E> ToBytes for CommitterKey<E>where
E: PairingEngine,
Source§impl<E> ToBytes for KZGCommitment<E>where
E: PairingEngine,
impl<E> ToBytes for KZGCommitment<E>where
E: PairingEngine,
Source§impl<E> ToBytes for KZGProof<E>where
E: PairingEngine,
impl<E> ToBytes for KZGProof<E>where
E: PairingEngine,
Source§impl<E> ToBytes for KZGRandomness<E>where
E: PairingEngine,
impl<E> ToBytes for KZGRandomness<E>where
E: PairingEngine,
Source§impl<E> ToBytes for PowersOfBetaG<E>where
E: PairingEngine,
impl<E> ToBytes for PowersOfBetaG<E>where
E: PairingEngine,
Source§impl<E> ToBytes for PowersOfG<E>where
E: PairingEngine,
impl<E> ToBytes for PowersOfG<E>where
E: PairingEngine,
Source§impl<E> ToBytes for Proof<E>where
E: PairingEngine,
impl<E> ToBytes for Proof<E>where
E: PairingEngine,
Source§impl<E> ToBytes for UniversalParams<E>where
E: PairingEngine,
impl<E> ToBytes for UniversalParams<E>where
E: PairingEngine,
Source§impl<E> ToBytes for VerifierKey<E>where
E: PairingEngine,
impl<E> ToBytes for VerifierKey<E>where
E: PairingEngine,
Source§impl<G> ToBytes for Bases<G>where
G: ToBytes,
Written as a Vec of the points is, so a key’s bytes and hash don’t depend
on whether it shares them.
impl<G> ToBytes for Bases<G>where
G: ToBytes,
Written as a Vec of the points is, so a key’s bytes and hash don’t depend
on whether it shares them.