import { PubKey } from './internal.js'; /** * Hierarchical deterministic public key * * Implements [BIP32-ed25519](https://github.com/LedgerHQ/orakolo/blob/master/papers/Ed25519_BIP%20Final.pdf) * with hashing primitives swapped out for BLAKE3. */ export declare class HDPubKey { private k; readonly chainCode: Uint8Array; constructor(k: Uint8Array, chainCode: Uint8Array); /** * Returns a HDPubKey from the given bytes. * * HD Public Keys are 64 bytes. */ static fromBytes(bytes: Uint8Array): HDPubKey; /** * Returns a HDPubKey from the given hex-encoded string. */ static fromHex(str: string): HDPubKey; /** * Returns a HDPubKey from the given bech32m-encoded string. */ static fromString(str: string): HDPubKey; /** * Derives a new HDPubKey from the given derivation path. * * The derivation path must of the format described in [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki). */ derive(path: string): HDPubKey; /** * Derives new HDPubKey from the given index integer. */ deriveChild(idx: number): HDPubKey; /** * Returns the HDPubKey as bytes. * * HD Public Keys are 64 bytes. */ toBytes(): Uint8Array; /** * Returns the HDPubKey as hex-encoded string. */ toHex(): string; /** * Returns the HDPubKey as bech32m-encoded string. */ toString(): string; /** * Returns the HDPubKey's normal PubKey. */ toPubKey(): PubKey; } //# sourceMappingURL=hd-pubkey.d.ts.map