scsys_crypto/primitives.rs
1/*
2 Appellation: primitives <module>
3 Contrib: FL03 <jo3mccain@icloud.com>
4 Description: ... summary ...
5*/
6use generic_array::GenericArray;
7use typenum::{
8 bit::{B0, B1},
9 uint::{UInt, UTerm},
10};
11
12pub type H256Hash = [u8; 32];
13pub type H160Hash = [u8; 20];
14
15pub type GenericHashOutput = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>;
16pub type GenericHash<T = u8, Output = GenericHashOutput> = GenericArray<T, Output>;