Trait snarkvm_wasm::traits::utilities::bits::RippleCarryAdder[][src]

pub trait RippleCarryAdder<F, Rhs = Self> where
    F: Field
{ pub fn add_bits<CS>(
        &self,
        cs: CS,
        other: &Self
    ) -> Result<Vec<Boolean, Global>, SynthesisError>
    where
        CS: ConstraintSystem<F>
; }

Returns the bitwise sum of a n-bit number with carry bit

Required methods

pub fn add_bits<CS>(
    &self,
    cs: CS,
    other: &Self
) -> Result<Vec<Boolean, Global>, SynthesisError> where
    CS: ConstraintSystem<F>, 
[src]

Loading content...

Implementations on Foreign Types

impl<F> RippleCarryAdder<F, Vec<Boolean, Global>> for Vec<Boolean, Global> where
    F: Field
[src]

Loading content...

Implementors

impl<F> RippleCarryAdder<F, Int8> for Int8 where
    F: Field + PrimeField
[src]

impl<F> RippleCarryAdder<F, Int16> for Int16 where
    F: Field + PrimeField
[src]

impl<F> RippleCarryAdder<F, Int32> for Int32 where
    F: Field + PrimeField
[src]

impl<F> RippleCarryAdder<F, Int64> for Int64 where
    F: Field + PrimeField
[src]

impl<F> RippleCarryAdder<F, Int128> for Int128 where
    F: Field + PrimeField
[src]

Loading content...