Implement codec for U256 (#761)

* Implement codec for U256

* Use little endian and add tests
This commit is contained in:
Wei Tang
2018-09-19 16:00:50 +08:00
committed by Gav Wood
parent 319549f563
commit 400a22ebe5
2 changed files with 47 additions and 1 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ pub mod blake2 {
impl Hasher for Blake2Hasher {
type Out = H256;
type StdHasher = PlainHasher;
const LENGTH:usize = 32;
const LENGTH: usize = 32;
fn hash(x: &[u8]) -> Self::Out {
blake2_256(x).into()
}