+++ /dev/null
-//! SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>\r
-//! SPDX-License-Identifier: GPL-3.0-or-later\r
-\r
-import { Blake2b } from './blake2b'\r
-\r
-/**\r
-* Derives account private keys from a wallet seed using the BLAKE2b hashing\r
-* algorithm.\r
-*\r
-* Separately, account public keys are derived from the private key using the\r
-* Ed25519 key algorithm, and account addresses are derived from the public key\r
-* as described in the Nano documentation.\r
-* https://docs.nano.org/integration-guides/the-basics/\r
-*\r
-* @param {ArrayBuffer} seed - 32-byte secret seed of the wallet\r
-* @param {number} index - 4-byte index of account to derive\r
-* @returns {ArrayBuffer} Private key for the account\r
-*/\r
-export class Blake2bCkd {\r
- static ckd (seed: ArrayBuffer, index: number): ArrayBuffer {\r
- const b = new ArrayBuffer(4)\r
- new DataView(b).setUint32(0, index, false)\r
- const s = new Uint8Array(seed)\r
- const i = new Uint8Array(b)\r
- return new Blake2b(32).update(s).update(i).digest().buffer\r
- }\r
-}\r
import { Bip39Mnemonic } from './bip39'
import { Bip44Ckd } from './bip44'
import { Blake2b } from './blake2b'
-import { Blake2bCkd } from './blake2b-ckd'
import { default as Constants, BIP44_COIN_NANO } from './constants'
import { default as Convert, bytes, hex, utf8 } from './convert'
import { Entropy } from './entropy'
const Bip39Mnemonic = ${Bip39Mnemonic}
const Bip44Ckd = ${Bip44Ckd}
const Blake2b = ${Blake2b}
- const Blake2bCkd = ${Blake2bCkd}
const Entropy = ${Entropy}
const NanoNaCl = ${NanoNaCl}
const Safe = ${Safe}