bls_key_derivation

Crates.iobls_key_derivation
lib.rsbls_key_derivation
version0.1.1
sourcesrc
created_at2019-11-15 19:19:14.901233
updated_at2019-11-15 19:35:56.407219
descriptionBLS key derivation
homepagehttps://github.com/ChainSafe/rust-bls-derivation
repositoryhttps://github.com/ChainSafe/rust-bls-derivation
max_upload_size
id181600
size11,655
Austin Abell (austinabell)

documentation

https://github.com/ChainSafe/rust-bls-derivation/blob/master/README.md

README

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
Commit count: 13

cargo fmt