This class extends the BIP32 Hierarchical Deterministic Key HDKey class to provide interoperability with ethers.js 6 HDNodeWallet.

Hierarchy (view full)

Constructors

  • Parameters

    • opt: HDKeyOpt

    Returns HDKey

Properties

EXTENDED_PRIVATE_KEY_PREFIX: Uint8Array = ...

Prefix for extended private key

EXTENDED_PUBLIC_KEY_PREFIX: Uint8Array = ...

Prefix for extended public key

VET_DERIVATION_PATH = "m/44'/818'/0'/0"

Default VET derivation path.

See SLIP-0044 : Registered coin types for BIP-0044 for more info.

Methods

  • Checks if BIP32 derivation path is valid.

    Parameters

    • derivationPath: string

      Derivation path to check.

    Returns boolean

    true if derivation path is valid, otherwise false.