use pea_amount as amount; fn main() { let ints = vec![0, 1, 10, 100, 100000000, 0xff0000000000, 0xff0000000000000000000000000000, 0xff000000000000000000000000000000]; for int in ints.iter() { println!("{}", int); let bytes = amount::to_bytes(int); println!("{:x?}", bytes); println!("{}", amount::from_bytes(&bytes)); println!() } }