pub fn hash_64_to_vec(input_bytes: Vec<u8>) -> [u8; 32] {
        let rounds = get_rounds_poseidon_circom_bn254_x5_3::<Fq>();
        let mds = get_mds_poseidon_circom_bn254_x5_3::<Fq>();
        let params = PoseidonParameters::<Fq>::new(rounds, mds);

        let poseidon_res = <PoseidonCircomCRH3 as TwoToOneCRH>::evaluate(
            &params,
            &input_bytes[0..32],
            &input_bytes[32..64],
        )
        .unwrap();

        //parsing reference hash to bytes
        let mut hash_bytes = [0u8; 32];
        <Fq as ToBytes>::write(&poseidon_res, &mut hash_bytes[..]);

        hash_bytes
    }
/*
    	* before the actual tests a reference merkle tree implementation with poseidon is defined for
    	* the onchain tree to test against.
    	*
    	*/
before the actual tests a reference merkle tree implementation with poseidon is defined for
the onchain tree to test against.
before the actual tests a reference merkle tree implementation with poseidon is defined for the onchain tree to test against .
pub fn hash_64_to_vec(input_bytes: Vec<u8>) -> [u8; 32] {
        let rounds = get_rounds_poseidon_circom_bn254_x5_3::<Fq>();
        let mds = get_mds_poseidon_circom_bn254_x5_3::<Fq>();
        let params = PoseidonParameters::<Fq>::new(rounds, mds);
        let poseidon_res = <PoseidonCircomCRH3 as TwoToOneCRH>::evaluate(
            &params,
            &input_bytes[0..32],
            &input_bytes[32..64],
        )
        .unwrap();
        //parsing reference hash to bytes
        let mut hash_bytes = [0u8; 32];
        <Fq as ToBytes>::write(&poseidon_res, &mut hash_bytes[..]);
        hash_bytes
    }
pub fn hash_64_to_vec ( input_bytes : Vec < u8 > ) -> [ u8 ; 32 ] { let rounds = get_rounds_poseidon_circom_bn254_x5_3 :: < Fq > ( ) ; let mds = get_mds_poseidon_circom_bn254_x5_3 :: < Fq > ( ) ; let params = PoseidonParameters :: < Fq > :: new ( rounds , mds ) ; let poseidon_res = < PoseidonCircomCRH3 as TwoToOneCRH > :: evaluate ( & params , & input_bytes [ 0 .. 32 ] , & input_bytes [ 32 .. 64 ] , ) . unwrap ( ) ; //parsing reference hash to bytes let mut hash_bytes = [ 0u8 ; 32 ] ; < Fq as ToBytes > :: write ( & poseidon_res , & mut hash_bytes [ .. ] ) ; hash_bytes }
before the actual tests a reference merkle tree implementation with poseidon is defined for
 the onchain tree to test against.
before the actual tests a reference merkle tree implementation with poseidon is defined for the onchain tree to test against .
input_bytes
Vec<u8>