@hazae41/clade
v0.1.1
Published
Account derivation (BIP-32, SLIP-0010) for TypeScript
Downloads
171
Maintainers
Readme
Clade
Account derivation (BIP-32, SLIP-0010) for TypeScript
npm install @hazae41/cladeFeatures
Current features
- 100% TypeScript and ESM
- No external dependencies
- Rust-like patterns
- Uses WebCrypto
- BIP-32, BIP-44, SLIP-0010
Usage
BIP-32
const seed = new BitcoinSeed(...)
const master = await seed.generate()
const child = await master.derive(123)
console.log(child.key.toHex())BIP-32 + BIP-44
const seed = new BitcoinSeed(...)
const child = await seed.derive("m/44'/0/0'/0/0")
console.log(child.key.toHex())SLIP-0010
const seed = new Ed25519Seed(...)
const master = await seed.generate()
const child = await master.derive(123)
console.log(child.key.toHex())SLIP-0010 + BIP-44
const seed = new Ed25519Seed(...)
const child = await seed.derive("m/44'/0/0'/0/0")
console.log(child.key.toHex())