Skip to content

Commit 40e73b4

Browse files
committed
Bump bech32 to v2.0.0
1 parent 9267387 commit 40e73b4

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ npm run-script coverage
146146
- [BIP69](https://github.com/bitcoinjs/bip69) - Lexicographical Indexing of Transaction Inputs and Outputs
147147
- [Base58](https://github.com/cryptocoinjs/bs58) - Base58 encoding/decoding
148148
- [Base58 Check](https://github.com/bitcoinjs/bs58check) - Base58 check encoding/decoding
149-
- [Bech32](https://github.com/bitcoinjs/bech32) - A BIP173 compliant Bech32 encoding library
149+
- [Bech32](https://github.com/bitcoinjs/bech32) - A BIP173/BIP350 compliant Bech32/Bech32m encoding library
150150
- [coinselect](https://github.com/bitcoinjs/coinselect) - A fee-optimizing, transaction input selection module for bitcoinjs-lib.
151151
- [merkle-lib](https://github.com/bitcoinjs/merkle-lib) - A performance conscious library for merkle root and tree calculations.
152152
- [minimaldata](https://github.com/bitcoinjs/minimaldata) - A module to check bitcoin policy: SCRIPT_VERIFY_MINIMALDATA

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"types"
5050
],
5151
"dependencies": {
52-
"bech32": "^1.1.2",
52+
"bech32": "^2.0.0",
5353
"bip174": "^2.0.1",
5454
"bip32": "^2.0.4",
5555
"bip66": "^1.1.0",

src/address.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const networks = require('./networks');
44
const payments = require('./payments');
55
const bscript = require('./script');
66
const types = require('./types');
7-
const bech32 = require('bech32');
7+
const { bech32 } = require('bech32');
88
const bs58check = require('bs58check');
99
const typeforce = require('typeforce');
1010
function fromBase58Check(address) {

src/payments/p2wpkh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const lazy = require('./lazy');
77
const typef = require('typeforce');
88
const OPS = bscript.OPS;
99
const ecc = require('tiny-secp256k1');
10-
const bech32 = require('bech32');
10+
const { bech32 } = require('bech32');
1111
const EMPTY_BUFFER = Buffer.alloc(0);
1212
// witness: {signature} {pubKey}
1313
// input: <>

src/payments/p2wsh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const lazy = require('./lazy');
77
const typef = require('typeforce');
88
const OPS = bscript.OPS;
99
const ecc = require('tiny-secp256k1');
10-
const bech32 = require('bech32');
10+
const { bech32 } = require('bech32');
1111
const EMPTY_BUFFER = Buffer.alloc(0);
1212
function stacksEqual(a, b) {
1313
if (a.length !== b.length) return false;

ts_src/address.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as payments from './payments';
44
import * as bscript from './script';
55
import * as types from './types';
66

7-
const bech32 = require('bech32');
7+
const { bech32 } = require('bech32');
88
const bs58check = require('bs58check');
99
const typeforce = require('typeforce');
1010

ts_src/payments/p2wpkh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const typef = require('typeforce');
77
const OPS = bscript.OPS;
88
const ecc = require('tiny-secp256k1');
99

10-
const bech32 = require('bech32');
10+
const { bech32 } = require('bech32');
1111

1212
const EMPTY_BUFFER = Buffer.alloc(0);
1313

ts_src/payments/p2wsh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const typef = require('typeforce');
77
const OPS = bscript.OPS;
88
const ecc = require('tiny-secp256k1');
99

10-
const bech32 = require('bech32');
10+
const { bech32 } = require('bech32');
1111

1212
const EMPTY_BUFFER = Buffer.alloc(0);
1313

0 commit comments

Comments
 (0)