| Crates.io | bls_key_derivation |
| lib.rs | bls_key_derivation |
| version | 0.1.1 |
| created_at | 2019-11-15 19:19:14.901233+00 |
| updated_at | 2019-11-15 19:35:56.407219+00 |
| description | BLS key derivation |
| homepage | https://github.com/ChainSafe/rust-bls-derivation |
| repository | https://github.com/ChainSafe/rust-bls-derivation |
| max_upload_size | |
| id | 181600 |
| size | 11,655 |
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>
run tests with:
cargo test