From 6930e9a3cc7bf2a2490294ce0a3cca755afc425b 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/package-lock.json | 2 +- sandbox/src/Bitcoin.tsx | 77 ++++++++++++++++- 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 ++++++++++++++++++++++++++++++++ 10 files changed, 288 insertions(+), 8 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/package-lock.json b/sandbox/package-lock.json index ca6471b..c8233ca 100644 --- a/sandbox/package-lock.json +++ b/sandbox/package-lock.json @@ -30,7 +30,7 @@ }, "../pkg": { "name": "bitbox-api", - "version": "0.5.0", + "version": "0.6.0", "license": "Apache-2.0" }, "node_modules/@esbuild/aix-ppc64": { diff --git a/sandbox/src/Bitcoin.tsx b/sandbox/src/Bitcoin.tsx index 091bf36..019d9d2 100644 --- a/sandbox/src/Bitcoin.tsx +++ b/sandbox/src/Bitcoin.tsx @@ -73,7 +73,6 @@ function BtcXPub({ bb02 } : Props) { - ); } @@ -195,7 +194,7 @@ function BtcSignPSBT({ bb02 }: Props) { } return ( -
+

Sign PSBT