3 unstable releases

Uses old Rust 2015

0.2.1 Oct 13, 2022
0.2.0 May 15, 2020
0.1.0 Jul 22, 2019

#83 in #universal

Download history 437/week @ 2024-01-01 442/week @ 2024-01-08 371/week @ 2024-01-15 294/week @ 2024-01-22 396/week @ 2024-01-29 182/week @ 2024-02-05 351/week @ 2024-02-12 317/week @ 2024-02-19 197/week @ 2024-02-26 232/week @ 2024-03-04 245/week @ 2024-03-11 206/week @ 2024-03-18 482/week @ 2024-03-25 241/week @ 2024-04-01 152/week @ 2024-04-08 328/week @ 2024-04-15

1,220 downloads per month

CC0 license

9KB
203 lines

rust-slip21

Example

let seed = hex::decode("c76c4ac4f4e4a00d6b274d5c39c700bb4a7ddc04fbc6f78e85ca75007b5b495f74a9043eeb77bdd53aa6fc3a0e31462270316fa04b8c19114c8798706cd02ac8").unwrap();

let master = Node::new_master(&seed);
assert_eq!(master.key(), &hex::decode("dbf12b44133eaab506a740f6565cc117228cbf1dd70635cfa8ddfdc9af734756").unwrap()[..]);

let child1 = master.derive_child("SLIP-0021".as_bytes());
assert_eq!(child1.key(), &hex::decode("1d065e3ac1bbe5c7fad32cf2305f7d709dc070d672044a19e610c77cdf33de0d").unwrap()[..]);

let child2 = child1.derive_child("Master encryption key".as_bytes());
assert_eq!(child2.key(), &hex::decode("ea163130e35bbafdf5ddee97a17b39cef2be4b4f390180d65b54cf05c6a82fde").unwrap()[..]);

Licensing

The code in this project is licensed under the Creative Commons CC0 1.0 Universal license.

Dependencies

~205–380KB