Skip to content

Commit c4abfa7

Browse files
committed
backend: update to v4.37.1 (hotfix)
Some users reported the app crashing when Litecoin is enabled with the the following error: > panic: readScript: script witness item is larger than the max allowed size [count 65973, max 11000] The limit in question was fixed by btcd a while ago, so we simply update btcd. It is unusual to have such large witness sizes, so there is a chance something else is going wrong that casuses the transaction to not deserialize correctly.
1 parent 4e5763c commit c4abfa7

File tree

14 files changed

+57
-33
lines changed

14 files changed

+57
-33
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 4.37.1
4+
- Fix BitBoxApp crash when processing BTC/LTC transactions containing too large witness items
5+
36
## 4.37.0
47
- Bundle BitBox02 firmware version v9.14.0
58
- Enable auto HiDPI scaling to correctly manage scale factor on high density screens

backend/keystore/software/software.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func (keystore *Keystore) SignTransaction(
198198
}
199199

200200
if address.Configuration.ScriptType() == signing.ScriptTypeP2TR {
201-
prv = txscript.TweakTaprootPrivKey(prv, nil)
201+
prv = txscript.TweakTaprootPrivKey(*prv, nil)
202202
signatureHash, err := txscript.CalcTaprootSignatureHash(
203203
btcProposedTx.SigHashes, txscript.SigHashDefault, transaction,
204204
index, btcProposedTx.PreviousOutputs)

backend/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const updateFileURL = "https://shiftcrypto.ch/updates/desktop.json"
2727

2828
var (
2929
// Version of the backend as displayed to the user.
30-
Version = semver.NewSemVer(4, 37, 0)
30+
Version = semver.NewSemVer(4, 37, 1)
3131
)
3232

3333
// UpdateFile is retrieved from the server.

frontends/android/BitBoxApp/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "ch.shiftcrypto.bitboxapp"
88
minSdkVersion 21
99
targetSdkVersion 31
10-
versionCode 42
11-
versionName "android-4.37.0"
10+
versionCode 43
11+
versionName "android-4.37.1"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
}
1414
buildTypes {

frontends/qt/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ linux:
3838
cp resources/linux/usr/share/icons/hicolor/128x128/apps/bitbox.png build/linux-tmp
3939
mkdir build/tmp-deb/opt/
4040
cp -aR build/linux-tmp build/tmp-deb/opt/bitbox
41-
cd build/linux && fpm --after-install ../../resources/deb-afterinstall.sh -s dir -t deb -n bitbox -v 4.37.0 -C ../tmp-deb/
42-
cd build/linux && fpm --after-install ../../resources/deb-afterinstall.sh -s dir -t rpm -n bitbox -v 4.37.0 -C ../tmp-deb/
41+
cd build/linux && fpm --after-install ../../resources/deb-afterinstall.sh -s dir -t deb -n bitbox -v 4.37.1 -C ../tmp-deb/
42+
cd build/linux && fpm --after-install ../../resources/deb-afterinstall.sh -s dir -t rpm -n bitbox -v 4.37.1 -C ../tmp-deb/
4343
# create AppImage
4444
cd build/linux-tmp && /opt/linuxdeployqt-7-x86_64.AppImage BitBox -appimage -unsupported-allow-new-glibc
4545
mv build/linux-tmp/BitBoxApp-*-x86_64.AppImage build/linux/

frontends/qt/resources/MacOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<string>APPL</string>
2222

2323
<key>CFBundleVersion</key>
24-
<string>4.37.0</string>
24+
<string>4.37.1</string>
2525

2626
<key>CFBundleShortVersionString</key>
27-
<string>4.37.0</string>
27+
<string>4.37.1</string>
2828

2929
<key>CFBundleSignature</key>
3030
<string>????</string>

frontends/qt/setup.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SetCompressor /SOLID lzma
2222

2323
# General Symbol Definitions
2424
!define REGKEY "SOFTWARE\$(^Name)"
25-
!define VERSION 4.37.0.0
25+
!define VERSION 4.37.1.0
2626
!define COMPANY "Shift Crypto AG"
2727
!define URL https://github.com/digitalbitbox/bitbox-wallet-app/releases/
2828
!define BINDIR "build\windows"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/digitalbitbox/bitbox-wallet-app
33
go 1.19
44

55
require (
6-
github.com/btcsuite/btcd v0.23.1
6+
github.com/btcsuite/btcd v0.23.4
77
github.com/btcsuite/btcd/btcec/v2 v2.2.1
88
github.com/btcsuite/btcd/btcutil v1.1.2
99
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce
1111
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
1212
github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M=
1313
github.com/btcsuite/btcd v0.23.0/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY=
14-
github.com/btcsuite/btcd v0.23.1 h1:IB8cVQcC2X5mHbnfirLG5IZnkWYNTPlLZVrxUYSotbE=
1514
github.com/btcsuite/btcd v0.23.1/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY=
15+
github.com/btcsuite/btcd v0.23.4 h1:IzV6qqkfwbItOS/sg/aDfPDsjPP8twrCOE2R93hxMlQ=
16+
github.com/btcsuite/btcd v0.23.4/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY=
1617
github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA=
1718
github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE=
1819
github.com/btcsuite/btcd/btcec/v2 v2.2.1 h1:xP60mv8fvp+0khmrN0zTdPC3cNm24rfeE6lh2R/Yv3E=

vendor/github.com/btcsuite/btcd/blockchain/weight.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)