Skip to content

Commit 328c23a

Browse files
committed
Add bundle hash for wc v1
1 parent 642bbee commit 328c23a

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ See the [FAQ](FAQ.md) for more details about common questions.
1414

1515
This wallet uses [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity). Current bundle hashes:
1616

17-
* Main bundle: `bundle.js -> sha256-x9oGHUxFMH+grTV/yqpWYsWnVdmD00PPolTahdB4sUE=`
18-
* Optional Ledger bundle: `bundle-ledger.js -> sha256-ahGOG1h2KTAtylviHC6GYqCX9Pa2NUleoytU5knhB6E=`
19-
* Optional WalletConnect bundle: `bundle-walletconnect.js -> sha256-eGLzdWvYcl/9NmhqTvc7j8/jhWAwauOnaGL4wNMs44w=`
17+
* Main bundle: `bundle.js -> sha256-kVZnRwd7Qa095vApngR7IxDK53ZSFJB86RzMYRpfPSU=`
18+
* Optional Ledger bundle: `bundle-ledger.js -> sha256-pNndh3uDU7f3K3e4nu05OXTE3Bx3WRMeVtr95liXJTE=`
19+
* Optional WalletConnect v1 bundle: `bundle-walletconnectv1.js -> sha256-PImYY1hPF519ZjZx2Pei7QsZ7kJyMpdtJgRKHT52ekg=`
20+
* Optional WalletConnect v2 bundle: `bundle-walletconnectv2.js -> sha256-UHsf1l/tWhpHJk2NMbCH1l372Pm8JoGxLLQqCLnNaLI=`
2021

2122
Advanced users can verify the source integrity by comparing the hashes in their page source to these values.
2223

scripts/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ export BUNDLE_HASH=`shasum -b -a 256 dist/bundle.js | awk '{ print $1 }' | xxd -
4242
echo "Bundle hash ${BUNDLE_HASH}"
4343
export LEDGER_BUNDLE_HASH=`shasum -b -a 256 dist/bundle-ledger.js | awk '{ print $1 }' | xxd -r -p | base64`
4444
echo "Ledger bundle hash ${LEDGER_BUNDLE_HASH}"
45-
export WC_BUNDLE_HASH=`shasum -b -a 256 dist/bundle-walletconnect.js | awk '{ print $1 }' | xxd -r -p | base64`
46-
echo "WalletConnect bundle hash ${WC_BUNDLE_HASH}"
45+
export WC1_BUNDLE_HASH=`shasum -b -a 256 dist/bundle-walletconnectv1.js | awk '{ print $1 }' | xxd -r -p | base64`
46+
echo "WalletConnect v1 bundle hash ${WC1_BUNDLE_HASH}"
47+
export WC2_BUNDLE_HASH=`shasum -b -a 256 dist/bundle-walletconnectv2.js | awk '{ print $1 }' | xxd -r -p | base64`
48+
echo "WalletConnect v2 bundle hash ${WC2_BUNDLE_HASH}"
4749

4850
echo "Updating index.html bundle hash"
4951
xplat_sed "s|sha256-%BUNDLE_HASH%|sha256-${BUNDLE_HASH}|g" dist/index.html
@@ -56,7 +58,8 @@ if [ "$ELECTRON" = false ]; then
5658
echo "Updating Readme"
5759
xplat_sed "s|bundle.js -> sha256-.*\`|bundle.js -> sha256-${BUNDLE_HASH}\`|g" README.md
5860
xplat_sed "s|bundle-ledger.js -> sha256-.*\`|bundle-ledger.js -> sha256-${LEDGER_BUNDLE_HASH}\`|g" README.md
59-
xplat_sed "s|bundle-walletconnect.js -> sha256-.*\`|bundle-walletconnect.js -> sha256-${WC_BUNDLE_HASH}\`|g" README.md
61+
xplat_sed "s|bundle-walletconnectv1.js -> sha256-.*\`|bundle-walletconnectv1.js -> sha256-${WC1_BUNDLE_HASH}\`|g" README.md
62+
xplat_sed "s|bundle-walletconnectv2.js -> sha256-.*\`|bundle-walletconnectv2.js -> sha256-${WC2_BUNDLE_HASH}\`|g" README.md
6063
else
6164
echo "Prepping index.html for electron"
6265
# Trim title down

0 commit comments

Comments
 (0)