From bfa857bce150a3edad849e72ca51f147672d1418 Mon Sep 17 00:00:00 2001 From: Philipp Walter Date: Wed, 18 Dec 2024 15:21:29 +0100 Subject: [PATCH] chore: upgrade bitcoin dependencies (#2407) --- package.json | 6 ++---- yarn.lock | 59 ++++++++++++++++++++++++++++++++++++---------------- 2 files changed, 43 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index a76f2fe40..d37e15423 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "postinstall": "node postinstall.js; yarn patch-package" }, "dependencies": { - "@bitcoinerlab/secp256k1": "1.0.5", + "@bitcoinerlab/secp256k1": "1.2.0", "@craftzdog/react-native-buffer": "6.0.5", "@formatjs/intl-datetimeformat": "6.12.3", "@formatjs/intl-getcanonicallocales": "2.3.0", @@ -60,13 +60,12 @@ "@synonymdev/slashtags-widget-news-feed": "1.1.0", "@synonymdev/slashtags-widget-price-feed": "1.1.0", "@synonymdev/web-relay": "1.0.7", - "bech32": "2.0.0", "beignet": "0.0.49", "bip21": "2.0.3", "bip32": "4.0.0", "bitcoin-address-validation": "2.2.3", "bitcoin-units": "0.3.0", - "bitcoinjs-lib": "6.1.5", + "bitcoinjs-lib": "6.1.7", "color": "4.2.3", "events": "3.3.0", "fuzzysort": "1.9.0", @@ -119,7 +118,6 @@ "redux-persist": "6.0.0", "rn-android-keyboard-adjust": "2.1.2", "rn-qr-generator": "1.4.0", - "secp256k1": "4.0.3", "sodium-react-native-direct": "0.4.2", "styled-components": "5.3.11", "url-parse": "1.5.10", diff --git a/yarn.lock b/yarn.lock index c7eef2994..3cd259b1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2865,6 +2865,15 @@ __metadata: languageName: node linkType: hard +"@bitcoinerlab/secp256k1@npm:1.2.0": + version: 1.2.0 + resolution: "@bitcoinerlab/secp256k1@npm:1.2.0" + dependencies: + "@noble/curves": ^1.7.0 + checksum: c95eda77bc271f178d19a9c48cce53e5a303f6710dbd650aa24405416d87b52ab03038b7e28cc55150a0cdf0bd463d2b299791777c332c1556c86d03159e965a + languageName: node + linkType: hard + "@bleskomat/form@npm:1.3.2": version: 1.3.2 resolution: "@bleskomat/form@npm:1.3.2" @@ -3926,6 +3935,22 @@ __metadata: languageName: node linkType: hard +"@noble/curves@npm:^1.7.0": + version: 1.7.0 + resolution: "@noble/curves@npm:1.7.0" + dependencies: + "@noble/hashes": 1.6.0 + checksum: e220b704f1e516f326fff985e794e840a267f5542e1388737142b08177672ebc41b460b5a5bf636d7622c68e8ae719bc042ccd8aed16dc14311450a94b5f2a05 + languageName: node + linkType: hard + +"@noble/hashes@npm:1.6.0": + version: 1.6.0 + resolution: "@noble/hashes@npm:1.6.0" + checksum: 07729b80108d2a9b862eb4e070d4f78ca7ee86b9a9c13a4f7c338ba47a15d4386dd283235da71f21ad515fa9f0b9429fc3da39d2f2b4a50e2442212d14cfd4a9 + languageName: node + linkType: hard + "@noble/hashes@npm:^1.1.5": version: 1.3.1 resolution: "@noble/hashes@npm:1.3.1" @@ -6508,9 +6533,9 @@ __metadata: languageName: node linkType: hard -"bitcoinjs-lib@npm:6.1.5": - version: 6.1.5 - resolution: "bitcoinjs-lib@npm:6.1.5" +"bitcoinjs-lib@npm:6.1.7": + version: 6.1.7 + resolution: "bitcoinjs-lib@npm:6.1.7" dependencies: "@noble/hashes": ^1.2.0 bech32: ^2.0.0 @@ -6518,7 +6543,7 @@ __metadata: bs58check: ^3.0.1 typeforce: ^1.11.3 varuint-bitcoin: ^1.1.2 - checksum: c45580863efca0abecfcfea194d7e6d2abeec29a4c7928c77b4af57936b9908f0d85175aa2208232a568de9cfb8ef75d1acfb1283c98dc41da20fe8f1462bb86 + checksum: 2fbac2bffc2fe0e1d5441fc09f092fa8a83a4572b10fd2601c960e19a60cdcab81b6bff8cefcefda80b952fe8795387c97219fc4676995bf554f26f3d9aadc58 languageName: node linkType: hard @@ -6560,7 +6585,7 @@ __metadata: "@babel/plugin-proposal-async-generator-functions": ^7.20.7 "@babel/preset-env": ^7.24.4 "@babel/runtime": ^7.24.4 - "@bitcoinerlab/secp256k1": 1.0.5 + "@bitcoinerlab/secp256k1": 1.2.0 "@commitlint/cli": ^19.2.2 "@commitlint/config-conventional": ^19.2.2 "@craftzdog/react-native-buffer": 6.0.5 @@ -6611,14 +6636,13 @@ __metadata: "@types/uuid": ^9.0.8 babel-jest: ^29.7.0 babel-plugin-transform-remove-console: ^6.9.4 - bech32: 2.0.0 beignet: 0.0.49 bip21: 2.0.3 bip32: 4.0.0 bitcoin-address-validation: 2.2.3 bitcoin-json-rpc: ^1.3.3 bitcoin-units: 0.3.0 - bitcoinjs-lib: 6.1.5 + bitcoinjs-lib: 6.1.7 color: 4.2.3 detox: 20.23.1 electrum-client: "BlueWallet/rn-electrum-client#47acb51149e97fab249c3f8a314f708dbee4fb6e" @@ -6688,7 +6712,6 @@ __metadata: redux-persist: 6.0.0 rn-android-keyboard-adjust: 2.1.2 rn-qr-generator: 1.4.0 - secp256k1: 4.0.3 sodium-react-native-direct: 0.4.2 styled-components: 5.3.11 typescript: 5.4.5 @@ -15306,27 +15329,27 @@ __metadata: languageName: node linkType: hard -"secp256k1@npm:4.0.3, secp256k1@npm:^4.0.2, secp256k1@npm:^4.0.3": - version: 4.0.3 - resolution: "secp256k1@npm:4.0.3" +"secp256k1@npm:5.0.0": + version: 5.0.0 + resolution: "secp256k1@npm:5.0.0" dependencies: elliptic: ^6.5.4 - node-addon-api: ^2.0.0 + node-addon-api: ^5.0.0 node-gyp: latest node-gyp-build: ^4.2.0 - checksum: 21e219adc0024fbd75021001358780a3cc6ac21273c3fcaef46943af73969729709b03f1df7c012a0baab0830fb9a06ccc6b42f8d50050c665cb98078eab477b + checksum: a0719dff4687c38d385b5e0b7e811c51a4ea24893128be9d097aee99f879eb0ea52582590deb15a49da627a3db23c6b028ad5c9c6ac1fca92ce760153b8cf21c languageName: node linkType: hard -"secp256k1@npm:5.0.0": - version: 5.0.0 - resolution: "secp256k1@npm:5.0.0" +"secp256k1@npm:^4.0.2, secp256k1@npm:^4.0.3": + version: 4.0.3 + resolution: "secp256k1@npm:4.0.3" dependencies: elliptic: ^6.5.4 - node-addon-api: ^5.0.0 + node-addon-api: ^2.0.0 node-gyp: latest node-gyp-build: ^4.2.0 - checksum: a0719dff4687c38d385b5e0b7e811c51a4ea24893128be9d097aee99f879eb0ea52582590deb15a49da627a3db23c6b028ad5c9c6ac1fca92ce760153b8cf21c + checksum: 21e219adc0024fbd75021001358780a3cc6ac21273c3fcaef46943af73969729709b03f1df7c012a0baab0830fb9a06ccc6b42f8d50050c665cb98078eab477b languageName: node linkType: hard