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

2.0.5 • Public • Published

Installation

npm install --save @types/wif

Summary

This package contains type definitions for wif (https://github.com/bitcoinjs/wif).

Details

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

index.d.ts

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

export interface WIFReturn {
    readonly version: number;
    readonly privateKey: Buffer;
    readonly compressed: boolean;
}

export function decodeRaw(buffer: Buffer, version?: number): WIFReturn;
export function decode(string: string, version?: number): WIFReturn;

export function encodeRaw(
    version: number,
    privateKey: Buffer,
    compressed: boolean,
): Buffer;

export function encode(
    version: number,
    privateKey: Buffer,
    compressed: boolean,
): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Daniel Byrne.

/@types/wif/

    Package Sidebar

    Install

    npm i @types/wif

    Weekly Downloads

    4,287

    Version

    2.0.5

    License

    MIT

    Unpacked Size

    3.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • types