/// Read a `CFromTransaction` from a `reader` of bytes and return it.
Read a `CFromTransaction` from a `reader` of bytes and return it.
Read a ` CFromTransaction ` from a ` reader ` of bytes and return it .
fn from_u8<R: Read>(mut reader: R) -> std::io::Result<Self> {
        let mut rt_note = [0; 32];
        let mut eta: NoteNullifier = [0; 32];
        let mut pk_addr: AddressPublicKey = [0; 32];
        let mut t_new = [0; 8];
        reader.read_exact(&mut rt_note)?;
        let rt_note = fr_from_repr(rt_note)?;
        reader.read_exact(&mut eta)?;
        reader.read_exact(&mut pk_addr)?;
        reader.read_exact(&mut t_new)?;
        let t_new = TransactionTime(t_new);
        let proof = Proof::<Bls12>::read(reader.by_ref())?;
        let mut vec_len = [0; 8];
        reader.read_exact(&mut vec_len)?;
        let mut signature = vec![0; u8_array_to_u64(&vec_len) as usize];
        reader.read_exact(&mut signature)?;
        Ok(CFromTransaction {
            rt_note,
            eta,
            pk_addr,
            t_new,
            proof,
            signature,
        })
    }
fn from_u8 < R : Read > ( mut reader : R ) -> std :: io :: Result < Self > { let mut rt_note = [ 0 ; 32 ] ; let mut eta : NoteNullifier = [ 0 ; 32 ] ; let mut pk_addr : AddressPublicKey = [ 0 ; 32 ] ; let mut t_new = [ 0 ; 8 ] ; reader . read_exact ( & mut rt_note ) ? ; let rt_note = fr_from_repr ( rt_note ) ? ; reader . read_exact ( & mut eta ) ? ; reader . read_exact ( & mut pk_addr ) ? ; reader . read_exact ( & mut t_new ) ? ; let t_new = TransactionTime ( t_new ) ; let proof = Proof :: < Bls12 > :: read ( reader . by_ref ( ) ) ? ; let mut vec_len = [ 0 ; 8 ] ; reader . read_exact ( & mut vec_len ) ? ; let mut signature = vec ! [ 0 u8_array_to_u64 ( vec_len ) as usize ] ; reader . read_exact ( & mut signature ) ? ; Ok ( CFromTransaction { rt_note , eta , pk_addr , t_new , proof , signature , } ) }
Read a `CFromTransaction` from a `reader` of bytes and return it.
Read a ` CFromTransaction ` from a ` reader ` of bytes and return it .
reader
R