althea-net/num256_rs

Add a method to return fixed size array

mpapierski opened this issue · 1 comments

This would be useful to avoid unnecessary copies where Into trait for Uint256 consumes self when trying to create [u8; 32]. This is totally unnecessary, and a method named to_bytes_be(&self) -> [u8; 32] could be really helpful and make things faster and use less memory.

resolved #19