Skip to content

Commit 660fd5d

Browse files
committed
Merge branch 'prodstrings'
2 parents 4727432 + 5976072 commit 660fd5d

24 files changed

+110
-54
lines changed

CHANGELOG-npm.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
## [Unreleased]
3+
## 0.10.0
44
- Add `bip85AppBip39()`
5+
- Add support for BitBox02 Nova
56

67
## 0.9.1
78
- WebHID: Automatically connect to a previoulsy connected device

CHANGELOG-rust.md

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

3+
## 0.9.0
4+
- Add support for BitBox02 Nova
5+
36
## 0.8.0
47
- Add `bip85_app_bip39()`
58
- Make the `simulator` feature work with the `multithreaded` feature

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "bitbox-api"
33
authors = ["Marko Bencun <[email protected]>"]
4-
version = "0.8.0"
4+
version = "0.9.0"
55
homepage = "https://bitbox.swiss/"
66
repository = "https://github.com/BitBoxSwiss/bitbox-api-rs/"
77
readme = "README-rust.md"
88
edition = "2021"
99
license = "Apache-2.0"
10-
description = "A library to interact with the BitBox02 hardware wallet"
10+
description = "A library to interact with BitBox hardware wallets"
1111
keywords = ["bitbox", "api", "bitcoin", "wasm"]
1212
categories = ["api-bindings", "cryptography"]
1313

ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ features=(
1212
examples=(
1313
"--example singlethreaded --features=usb,tokio/rt,tokio/macros"
1414
"--example multithreaded --features=usb,tokio/rt,tokio/macros,tokio/rt-multi-thread,multithreaded"
15-
" --example btc_signtx --features=usb,tokio/rt,tokio/macros"
15+
"--example btc_signtx --features=usb,tokio/rt,tokio/macros"
1616
"--example btc_sign_psbt --features=usb,tokio/rt,tokio/macros"
1717
"--example btc_sign_msg --features=usb,tokio/rt,tokio/macros"
1818
"--example btc_miniscript --features=usb,tokio/rt,tokio/macros"

examples/btc_miniscript.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async fn get_bitbox02() -> bitbox_api::PairedBitBox<bitbox_api::runtime::TokioRu
1212
.unwrap();
1313
let pairing_bitbox = bitbox.unlock_and_pair().await.unwrap();
1414
if let Some(pairing_code) = pairing_bitbox.get_pairing_code().as_ref() {
15-
println!("Pairing code\n{}", pairing_code);
15+
println!("Pairing code\n{pairing_code}");
1616
}
1717
pairing_bitbox.wait_confirm().await.unwrap()
1818
}

examples/btc_sign_msg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async fn signmsg<R: bitbox_api::runtime::Runtime>() {
1010
.unwrap();
1111
let pairing_bitbox = bitbox.unlock_and_pair().await.unwrap();
1212
if let Some(pairing_code) = pairing_bitbox.get_pairing_code().as_ref() {
13-
println!("Pairing code\n{}", pairing_code);
13+
println!("Pairing code\n{pairing_code}");
1414
}
1515
let paired_bitbox = pairing_bitbox.wait_confirm().await.unwrap();
1616

@@ -27,7 +27,7 @@ async fn signmsg<R: bitbox_api::runtime::Runtime>() {
2727
.btc_sign_message(pb::BtcCoin::Btc, script_config_sign_msg, b"message")
2828
.await
2929
.unwrap();
30-
println!("Signature: {:?}", signature);
30+
println!("Signature: {signature:?}");
3131
}
3232

3333
#[tokio::main(flavor = "current_thread")]

examples/btc_sign_psbt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async fn sign_psbt<R: bitbox_api::runtime::Runtime>(psbt: &mut bitcoin::psbt::Ps
1111
.unwrap();
1212
let pairing_device = d.unlock_and_pair().await.unwrap();
1313
if let Some(pairing_code) = pairing_device.get_pairing_code().as_ref() {
14-
println!("Pairing code\n{}", pairing_code);
14+
println!("Pairing code\n{pairing_code}");
1515
}
1616
let paired = pairing_device.wait_confirm().await.unwrap();
1717
paired
@@ -33,5 +33,5 @@ async fn main() {
3333
let mut psbt = bitcoin::psbt::Psbt::from_str(buffer.trim()).unwrap();
3434
sign_psbt::<bitbox_api::runtime::TokioRuntime>(&mut psbt).await;
3535
println!("signed:");
36-
println!("{}", psbt);
36+
println!("{psbt}");
3737
}

examples/btc_signtx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async fn signtx<R: bitbox_api::runtime::Runtime>() {
1010
.unwrap();
1111
let pairing_bitbox = bitbox.unlock_and_pair().await.unwrap();
1212
if let Some(pairing_code) = pairing_bitbox.get_pairing_code().as_ref() {
13-
println!("Pairing code\n{}", pairing_code);
13+
println!("Pairing code\n{pairing_code}");
1414
}
1515
let paired_bitbox = pairing_bitbox.wait_confirm().await.unwrap();
1616

examples/cardano.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
1010
.unwrap();
1111
let pairing_bitbox = bitbox.unlock_and_pair().await.unwrap();
1212
if let Some(pairing_code) = pairing_bitbox.get_pairing_code().as_ref() {
13-
println!("Pairing code\n{}", pairing_code);
13+
println!("Pairing code\n{pairing_code}");
1414
}
1515
let paired_bitbox = pairing_bitbox.wait_confirm().await.unwrap();
1616

@@ -22,7 +22,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
2222
])
2323
.await
2424
.unwrap();
25-
println!("Xpubs: {:?}", xpubs);
25+
println!("Xpubs: {xpubs:?}");
2626

2727
println!("Getting an address...");
2828
let address = paired_bitbox
@@ -36,7 +36,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
3636
)
3737
.await
3838
.unwrap();
39-
println!("Address: {}", address);
39+
println!("Address: {address}");
4040

4141
println!("Signing a transaction with tokens...");
4242
let change_config = bitbox_api::cardano::make_script_config_pkh_skh(
@@ -101,7 +101,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
101101
.cardano_sign_transaction(transaction)
102102
.await
103103
.unwrap();
104-
println!("Witness: {:?}", witness);
104+
println!("Witness: {witness:?}");
105105

106106
println!("Delegating to a staking pool...");
107107
let transaction = pb::CardanoSignTransactionRequest {
@@ -156,7 +156,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
156156
.cardano_sign_transaction(transaction)
157157
.await
158158
.unwrap();
159-
println!("Witness: {:?}", witness);
159+
println!("Witness: {witness:?}");
160160

161161
println!("Withdrawing staking rewards...");
162162
let transaction = pb::CardanoSignTransactionRequest {
@@ -194,7 +194,7 @@ async fn demo<R: bitbox_api::runtime::Runtime>() {
194194
.cardano_sign_transaction(transaction)
195195
.await
196196
.unwrap();
197-
println!("Witness: {:?}", witness);
197+
println!("Witness: {witness:?}");
198198
}
199199

200200
#[tokio::main(flavor = "current_thread")]

0 commit comments

Comments
 (0)