@types/hdkey
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/hdkey

Summary

This package contains type definitions for hdkey (https://github.com/cryptocoinjs/hdkey).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hdkey.

index.d.ts

/// <reference types="node"/>

declare class HDNode {
    static fromMasterSeed(seed: Buffer, versions?: { private: number; public: number }): HDNode;
    publicKey: Buffer;
    privateKey: Buffer;
    chainCode: Buffer;
    constructor();
    derive(path: string): HDNode;
    toJSON(): { xpriv: string; xpub: string };
    static fromJSON(obj: { xpriv: string; xpub: string }): HDNode;
    static fromExtendedKey(xpriv: string): HDNode;
    sign(hash: Buffer): Buffer;
    verify(hash: Buffer, signature: Buffer): boolean;
    wipePrivateData(): HDNode;
    privateExtendedKey: string;
    publicExtendedKey: string;
}
export = HDNode;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Leonid Logvinov, Tvrtko Majstorovic, and Alberto Torre.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.3
    2,084
  • 2.0.2
    106
  • 2.0.1
    1,096
  • 2.0.0
    99
  • 0.7.1
    6,899
  • 0.7.0
    27

Package Sidebar

Install

npm i @types/hdkey

Weekly Downloads

10,311

Version

2.0.3

License

MIT

Unpacked Size

4.3 kB

Total Files

5

Last publish

Collaborators

  • types