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.
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.