From 49aaee04232d6ac522ad5bedde79e1e618ead077 Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Sun, 11 Aug 2024 15:20:28 +0200 Subject: [PATCH] btc: add multisig support --- Cargo.lock | 2 +- Cargo.toml | 2 +- NPM_VERSION | 2 +- sandbox/src/Bitcoin.tsx | 63 +++++++++++++- scripts/build-protos.rs | 4 + src/btc.rs | 52 ++++++++++++ src/shiftcrypto.bitbox02.rs | 4 + src/wasm/types.rs | 9 +- tests/subtests/test_btc_psbt.rs | 142 ++++++++++++++++++++++++++++++++ 9 files changed, 274 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 62d1195..ffa9522 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -162,7 +162,7 @@ checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d" [[package]] name = "bitbox-api" -version = "0.4.1" +version = "0.5.0" dependencies = [ "async-trait", "base32", diff --git a/Cargo.toml b/Cargo.toml index 92febca..90aa336 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bitbox-api" authors = ["Marko Bencun "] -version = "0.4.1" +version = "0.5.0" homepage = "https://bitbox.swiss/" repository = "https://github.com/BitBoxSwiss/bitbox-api-rs/" readme = "README-rust.md" diff --git a/NPM_VERSION b/NPM_VERSION index 79a2734..09a3acf 100644 --- a/NPM_VERSION +++ b/NPM_VERSION @@ -1 +1 @@ -0.5.0 \ No newline at end of file +0.6.0 \ No newline at end of file diff --git a/sandbox/src/Bitcoin.tsx b/sandbox/src/Bitcoin.tsx index 091bf36..8c7cee2 100644 --- a/sandbox/src/Bitcoin.tsx +++ b/sandbox/src/Bitcoin.tsx @@ -195,7 +195,7 @@ function BtcSignPSBT({ bb02 }: Props) { } return ( -
+

Sign PSBT