Add uint constants.
This commit is contained in:
parent
f4927619da
commit
3def0b9609
@ -15,6 +15,8 @@ pub mod vector;
|
|||||||
|
|
||||||
//pub mod network;
|
//pub mod network;
|
||||||
|
|
||||||
|
pub type Bytes = Vec<u8>;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn it_works() {
|
fn it_works() {
|
||||||
}
|
}
|
||||||
|
@ -461,6 +461,10 @@ impl From<U128> for U256 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub const ZERO_U256: U256 = U256([0x00u64; 4]);
|
||||||
|
pub const ONE_U256: U256 = U256([0x01u64, 0x00u64, 0x00u64, 0x00u64]);
|
||||||
|
pub const BAD_U256: U256 = U256([0xffffffffffffffffu64; 4]);
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use uint::U256;
|
use uint::U256;
|
||||||
|
Loading…
Reference in New Issue
Block a user