https://github.com/chainsafe/rust-bls-derivation
https://github.com/chainsafe/rust-bls-derivation
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chainsafe/rust-bls-derivation
- Owner: ChainSafe
- Created: 2019-11-10T05:23:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-15T19:38:28.000Z (about 6 years ago)
- Last Synced: 2025-10-02T02:53:34.568Z (4 months ago)
- Language: Rust
- Size: 33.2 KB
- Stars: 4
- Watchers: 15
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
```
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, String>
```
## Testing
run tests with:
```
cargo test
```