pub fn encode(self, value: u8) -> EvaluatingWire<M> {
        EvaluatingWire {
            bits: self
                .bits
                .into_iter()
                .zip(to_bit_arr(value, W::bits()))
                .map(|((zero, one), choice)| if choice { one } else { zero })
                .collect::<Vec<M>>(),
        }
    }
/// TODO: change the type of value W::ValueType
/// Encodes a value to to garbled value.
change the type of value W::ValueType
Encodes a value to to garbled value.
change the type of value W :: ValueType Encodes a value to to garbled value .
pub fn encode(self, value: u8) -> EvaluatingWire<M> {
        EvaluatingWire {
            bits: self
                .bits
                .into_iter()
                .zip(to_bit_arr(value, W::bits()))
                .map(|((zero, one), choice)| if choice { one } else { zero })
                .collect::<Vec<M>>(),
        }
    }
pub fn encode ( self , value : u8 ) -> EvaluatingWire < M > { EvaluatingWire { bits : self . bits . into_iter ( ) . zip ( to_bit_arr ( value , W :: bits ( ) ) ) . map ( | ( ( zero , one ) , choice ) | if choice { one } else { zero } ) . collect :: < Vec < M > > ( ) , } }
TODO: change the type of value W::ValueType
Encodes a value to to garbled value.
TODO : change the type of value W :: ValueType Encodes a value to to garbled value .
self
value
u8
self
value
u8