Nihilistic Party Mantra

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

    2.0.1 • 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

    // Type definitions for hdkey 2.0
    // Project: https://github.com/cryptocoinjs/hdkey
    // Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
    //                 Tvrtko Majstorovic <https://github.com/TvrtkoM>
    //                 Alberto Torre <https://github.com/JAlbertoGonzalez>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <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, 11 Jan 2022 19:31:34 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

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

    Keywords

    none

    Install

    npm i @types/hdkey

    DownloadsWeekly Downloads

    18,829

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    5.04 kB

    Total Files

    4

    Last publish

    Collaborators

    • types