1 unstable release

0.1.1 Nov 15, 2019
0.1.0 Nov 15, 2019

#37 in #bls

Apache-2.0

11KB
175 lines

Rust BLS key derivation (EIP2333, EIP2334)

Usage

The following functions are available:

Derive master key from seed

pub fn derive_master_sk(seed: &[u8]) -> Result<BigUint, String>

Derive child key from parent and index:

pub fn derive_child(parent_sk: BigUint, index: BigUint) -> BigUint

Get path of indexes from a string path following EIP2334 spec

pub fn path_to_node(path: String) -> Result<Vec<BigUint>, String>

Testing

run tests with:

cargo test

Dependencies

~4.5MB
~61K SLoC