if (typeof index !== 'number') {
throw new Error('Invalid wallet account index')
}
- const derive = this.#type === 'BIP-44'
- ? Bip44.ckd(this.#seed, BIP44_COIN_NANO, index)
- : Blake2b.ckd(this.#seed, index)
+ const derive = this.#type === 'BLAKE2b'
+ ? Blake2b.ckd(this.#seed, index)
+ : Bip44.ckd(this.#type === 'Exodus' ? 'Bitcoin seed' : 'ed25519 seed', this.#seed, BIP44_COIN_NANO, index)
return derive.then(prv => {
const pub = NanoNaCl.convert(new Uint8Array(prv))
this.#timer = new VaultTimer(() => this.lock(), this.#timeout)