Trait snarkvm_wasm::ToBytesGadget[][src]

pub trait ToBytesGadget<F> where
    F: Field
{ fn to_bytes<CS>(&self, cs: CS) -> Result<Vec<UInt8, Global>, SynthesisError>
    where
        CS: ConstraintSystem<F>
;
fn to_bytes_strict<CS>(
        &self,
        cs: CS
    ) -> Result<Vec<UInt8, Global>, SynthesisError>
    where
        CS: ConstraintSystem<F>
; }

Required methods

Additionally checks if the produced list of booleans is ‘valid’.

Implementations on Foreign Types

Implementors

Additionally checks if the produced list of booleans is ‘valid’.

Writes the x-coordinate of the encryption public key.

Writes the x-coordinate of the encryption public key. Additionally checks if the generated list of booleans is ‘valid’.

Outputs the unique byte decomposition of self in little-endian form.