Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/wif

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/wif - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

4

wif/index.d.ts

@@ -20,3 +20,3 @@ // Type definitions for wif 2.0

privateKey: Buffer,
compressed: boolean
compressed: boolean,
): Buffer;

@@ -27,3 +27,3 @@

privateKey: Buffer,
compressed: boolean
compressed: boolean,
): string;
{
"name": "@types/wif",
"version": "2.0.2",
"version": "2.0.3",
"description": "TypeScript definitions for wif",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wif",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "3ca152da7b316895a01a08ef3086ebce0ef741ca0ef18a60a5401a5407aa90e6",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "f1445706f0b47b628630960a53175a61841c6dda089331eb9e7e486b06982066",
"typeScriptVersion": "4.5"
}

@@ -9,5 +9,36 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wif.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wif/index.d.ts)
````ts
// Type definitions for wif 2.0
// Project: https://github.com/bitcoinjs/wif
// Definitions by: Daniel Byrne <https://github.com/danwbyrne>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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, 13 Oct 2020 17:10:11 GMT
* Last updated: Mon, 25 Sep 2023 13:39:07 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +45,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc