Skip to content

ChainSafe/rust-bls-derivation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages