pub fn to_fixed_bytes(val: & Uint256) -> [u8; 32] {
    let mut fixed_bytes: [u8; 32] = [0; 32];
    let val_bytes = val.to_bytes_be();
    for i in 0..val_bytes.len() {
        fixed_bytes[32 - val_bytes.len() + i] = val_bytes[i];
    }
    return fixed_bytes;
}
//Returns 32 bytes corresponding to big endian of val
// Used in Keccak to emulate behaviour of EVM memory
Returns 32 bytes corresponding to big endian of val
Used in Keccak to emulate behaviour of EVM memory
Returns 32 bytes corresponding to big endian of val Used in Keccak to emulate behaviour of EVM memory
pub fn to_fixed_bytes(val: & Uint256) -> [u8; 32] {
    let mut fixed_bytes: [u8; 32] = [0; 32];
    let val_bytes = val.to_bytes_be();
    for i in 0..val_bytes.len() {
        fixed_bytes[32 - val_bytes.len() + i] = val_bytes[i];
    }
    return fixed_bytes;
}
pub fn to_fixed_bytes ( val : & Uint256 ) -> [ u8 ; 32 ] { let mut fixed_bytes : [ u8 ; 32 ] = [ 0 ; 32 ] ; let val_bytes = val . to_bytes_be ( ) ; for i in 0 .. val_bytes . len ( ) { fixed_bytes [ 32 - val_bytes . len ( ) + i ] = val_bytes [ i ] ; } return fixed_bytes ; }
Returns 32 bytes corresponding to big endian of val
Used in Keccak to emulate behaviour of EVM memory
Returns 32 bytes corresponding to big endian of val Used in Keccak to emulate behaviour of EVM memory
val
& Uint256
val
& Uint256