PRIMITIVES
Ethereum primitives type for rust.
This crate was unstable and maybe lot's of bugs and I suggest not to use this.
Usage
[]
= "0.1"
use *;
let x: U256 = 100u128.into;
let y: U256 = 2u128.into;
let z = x * y;
assert_eq!;
Macro
To create new type, you can use macro define!
.
use *;
define!;
let x: U512 = 100u8.into;
assert_eq!;
TODO
- Add Pow/Exp method for each types.
- Add SQRT method for each types.