Socket
Socket
Sign inDemoInstall

bitcoinjs-lib

Package Overview
Dependencies
Maintainers
3
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoinjs-lib - npm Package Compare versions

Comparing version 5.1.2 to 5.1.3

9

CHANGELOG.md

@@ -0,1 +1,10 @@

# 5.1.3
__changed__
- TypeScript types: Made Signer and SignerAsync use any for network since we only check for equivalence. (#1448)
- TypeScript types: Made the args for addInput and addOutput for Psbt actually accept updateInput and updateOutput parameters. (#1449)
# 5.1.2
__added__
- `ECPair` and `bip32` objects now have a lowR boolean attribute defaulted to false. You may set it to true to ensure that the sign method uses low R values (#1442) (This is to enable low R usage in Psbt, since we decided not to give the low R flag to the Psbt class, since it makes more sense to be an attribute of the Signer interface)
# 5.1.1

@@ -2,0 +11,0 @@ __changed__

4

package.json
{
"name": "bitcoinjs-lib",
"version": "5.1.2",
"version": "5.1.3",
"description": "Client-side Bitcoin JavaScript library",

@@ -78,3 +78,3 @@ "main": "./src/index.js",

"proxyquire": "^2.0.1",
"regtest-client": "0.1.0",
"regtest-client": "0.2.0",
"rimraf": "^2.6.3",

@@ -81,0 +81,0 @@ "tslint": "^5.16.0",

@@ -10,3 +10,3 @@ /// <reference types="node" />

publicKey: Buffer;
network?: Network;
network?: any;
sign(hash: Buffer, lowR?: boolean): Buffer;

@@ -17,3 +17,3 @@ getPublicKey?(): Buffer;

publicKey: Buffer;
network?: Network;
network?: any;
sign(hash: Buffer, lowR?: boolean): Promise<Buffer>;

@@ -20,0 +20,0 @@ getPublicKey?(): Buffer;

/// <reference types="node" />
import { Psbt as PsbtBase } from 'bip174';
import { KeyValue, PsbtGlobalUpdate, PsbtInputUpdate, PsbtOutputUpdate, TransactionInput, TransactionOutput } from 'bip174/src/lib/interfaces';
import { KeyValue, PsbtGlobalUpdate, PsbtInput, PsbtInputUpdate, PsbtOutput, PsbtOutputUpdate, TransactionInput, TransactionOutput } from 'bip174/src/lib/interfaces';
import { Signer, SignerAsync } from './ecpair';

@@ -54,6 +54,6 @@ import { Network } from './networks';

setInputSequence(inputIndex: number, sequence: number): this;
addInputs(inputDatas: TransactionInput[]): this;
addInput(inputData: TransactionInput): this;
addOutputs(outputDatas: TransactionOutput[]): this;
addOutput(outputData: TransactionOutput): this;
addInputs(inputDatas: PsbtInputExtended[]): this;
addInput(inputData: PsbtInputExtended): this;
addOutputs(outputDatas: PsbtOutputExtended[]): this;
addOutput(outputData: PsbtOutputExtended): this;
extractTransaction(disableFeeCheck?: boolean): Transaction;

@@ -88,2 +88,6 @@ getFeeRate(): number;

}
interface PsbtInputExtended extends PsbtInput, TransactionInput {
}
interface PsbtOutputExtended extends PsbtOutput, TransactionOutput {
}
interface HDSignerBase {

@@ -90,0 +94,0 @@ /**

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