Skip to content

Commit

Permalink
Bump HWI
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Jul 4, 2024
1 parent 12e4429 commit dcff6ce
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 11 deletions.
24 changes: 23 additions & 1 deletion BTCPayServer.Hwi/Deployment/HwiVersions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,29 @@ public class HwiVersions
}
};

public static HwiVersion Latest => v2_1_1;
public static HwiVersion v3_0_0 { get; } = new HwiVersion()
{
Windows = new HwiDownloadInfo()
{
Link = "https://github.com/bitcoin-core/HWI/releases/download/3.0.0/hwi-3.0.0-windows-x86_64.zip",
Hash = "38b3f02374c300516b4583a1195ffe1cac1159f9885b8ab434fd450e290c907a",
Extractor = new ZipExtractor()
},
Linux = new HwiDownloadInfo()
{
Link = "https://github.com/bitcoin-core/HWI/releases/download/3.0.0/hwi-3.0.0-linux-x86_64.tar.gz",
Hash = "9b70aab37a1265457de4aaa242bd24a0abef5056357d8337bd79232e9b85bc1c",
Extractor = new TarExtractor()
},
Mac = new HwiDownloadInfo()
{
Link = "https://github.com/bitcoin-core/HWI/releases/download/3.0.0/hwi-3.0.0-mac-x86_64.tar.gz",
Hash = "d05c046d5718bf92b348a786aad15cb0f0132fcccf57a646758610240327a977",
Extractor = new TarExtractor()
}
};

public static HwiVersion Latest => v3_0_0;
}

public class HwiVersion
Expand Down
2 changes: 1 addition & 1 deletion BTCPayServer.Vault/Version.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>2.0.9</Version>
<Version>2.0.10</Version>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Build/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Changelog

* Fix: Impossible to sign big transactions on windows (#77)
* Bump HWI to 3.0.0 (Adding support to Trezor Safe 3)

You may want to follow the [documented](https://github.com/btcpayserver/BTCPayServer.Vault/blob/master/docs/HowToVerify.md) process to verify that the binaries are built by Nicolas Dorier.
4 changes: 2 additions & 2 deletions Build/debian-x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ RUN apt-get update
RUN apt-get install -y --no-install-recommends imagemagick
###

RUN wget -qO /tmp/hwi.tar.gz https://github.com/bitcoin-core/HWI/releases/download/2.3.1/hwi-2.3.1-linux-x86_64.tar.gz && \
RUN wget -qO /tmp/hwi.tar.gz https://github.com/bitcoin-core/HWI/releases/download/3.0.0/hwi-3.0.0-linux-x86_64.tar.gz && \
tar -zxvf /tmp/hwi.tar.gz -C /tmp hwi && \
echo "9519023b3a485b68668675db8ab70be2e338be100fd2731eeddd6d34fc440580 /tmp/hwi" | sha256sum -c - && \
echo "9b70aab37a1265457de4aaa242bd24a0abef5056357d8337bd79232e9b85bc1c /tmp/hwi" | sha256sum -c - && \
rm /tmp/hwi.tar.gz

SHELL ["/bin/bash", "-c"]
Expand Down
4 changes: 2 additions & 2 deletions Build/linux-x64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS builder

RUN wget -qO /tmp/hwi.tar.gz https://github.com/bitcoin-core/HWI/releases/download/2.1.1/hwi-2.1.1-linux-amd64.tar.gz && \
RUN wget -qO /tmp/hwi.tar.gz https://github.com/bitcoin-core/HWI/releases/download/3.0.0/hwi-3.0.0-linux-x86_64.tar.gz && \
tar -zxvf /tmp/hwi.tar.gz -C /tmp hwi && \
echo "7f4cbe4e5c2cd1ac892f9bd8ac35fb1f837b6a547b528b61aca895a212a90062 /tmp/hwi" | sha256sum -c - && \
echo "9b70aab37a1265457de4aaa242bd24a0abef5056357d8337bd79232e9b85bc1c /tmp/hwi" | sha256sum -c - && \
rm /tmp/hwi.tar.gz

WORKDIR /source
Expand Down
4 changes: 2 additions & 2 deletions Build/osx-x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ RUN apt-get install -y --no-install-recommends imagemagick

RUN apt-get install -y --no-install-recommends git icnsutils

RUN wget -qO /tmp/hwi.tar.gz https://github.com/bitcoin-core/HWI/releases/download/2.3.1/hwi-2.3.1-mac-x86_64.tar.gz && \
RUN wget -qO /tmp/hwi.tar.gz https://github.com/bitcoin-core/HWI/releases/download/3.0.0/hwi-3.0.0-mac-x86_64.tar.gz && \
tar -zxvf /tmp/hwi.tar.gz -C /tmp hwi && \
echo "9059b8f7cf6fe42f6e37cd8015cd11cb8fb736650797b25da849c625ed61ea62 /tmp/hwi" | sha256sum -c - && \
echo "d05c046d5718bf92b348a786aad15cb0f0132fcccf57a646758610240327a977 /tmp/hwi" | sha256sum -c - && \
rm /tmp/hwi.tar.gz

WORKDIR /source
Expand Down
4 changes: 2 additions & 2 deletions Build/win-x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ RUN apt-get install -y --no-install-recommends imagemagick
###

RUN apt-get install -y --no-install-recommends nsis unzip wine xxd osslsigncode openssl
RUN wget -qO "/tmp/hwi.zip" https://github.com/bitcoin-core/HWI/releases/download/2.3.1/hwi-2.3.1-windows-x86_64.zip && \
RUN wget -qO "/tmp/hwi.zip" https://github.com/bitcoin-core/HWI/releases/download/3.0.0/hwi-3.0.0-windows-x86_64.zip && \
unzip "/tmp/hwi.zip" -d "/tmp" && \
echo "460c8b83a9d8888ad769ffdc34dbe3ad7ecd27b22035494bdeb268d943be1791 /tmp/hwi.exe" | sha256sum -c - && \
echo "38b3f02374c300516b4583a1195ffe1cac1159f9885b8ab434fd450e290c907a /tmp/hwi.exe" | sha256sum -c - && \
rm "/tmp/hwi.zip" && \
# Need to setup with rcedit because https://github.com/dotnet/sdk/issues/3943
# I prebuild the binaries with VS 2019 on commit b807b34a644c86c0b0d89c7f073967e79202731a
Expand Down

0 comments on commit dcff6ce

Please sign in to comment.