Skip to content

Commit df846fd

Browse files
committed
Update deps
1 parent d31223b commit df846fd

File tree

4 files changed

+60
-135
lines changed

4 files changed

+60
-135
lines changed

Cargo.lock

Lines changed: 47 additions & 134 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sign.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use super::*;
22

33
/// Signs the BIP-322 simple from spec-compliant string encodings.
4+
#[allow(clippy::result_large_err)]
45
pub fn sign_simple_encoded(address: &str, message: &str, wif_private_key: &str) -> Result<String> {
56
let address = Address::from_str(address)
67
.context(error::AddressParse { address })?
@@ -20,6 +21,7 @@ pub fn sign_simple_encoded(address: &str, message: &str, wif_private_key: &str)
2021
}
2122

2223
/// Signs the BIP-322 full from spec-compliant string encodings.
24+
#[allow(clippy::result_large_err)]
2325
pub fn sign_full_encoded(address: &str, message: &str, wif_private_key: &str) -> Result<String> {
2426
let address = Address::from_str(address)
2527
.context(error::AddressParse { address })?
@@ -38,6 +40,7 @@ pub fn sign_full_encoded(address: &str, message: &str, wif_private_key: &str) ->
3840
}
3941

4042
/// Signs in the BIP-322 simple format from proper Rust types and returns the witness.
43+
#[allow(clippy::result_large_err)]
4144
pub fn sign_simple(
4245
address: &Address,
4346
message: impl AsRef<[u8]>,
@@ -51,6 +54,7 @@ pub fn sign_simple(
5154
}
5255

5356
/// Signs in the BIP-322 full format from proper Rust types and returns the full transaction.
57+
#[allow(clippy::result_large_err)]
5458
pub fn sign_full(
5559
address: &Address,
5660
message: impl AsRef<[u8]>,
@@ -180,7 +184,7 @@ pub fn create_message_signature_taproot(
180184

181185
let key_pair = key_pair
182186
.tap_tweak(&secp, to_sign.inputs[0].tap_merkle_root)
183-
.to_inner();
187+
.to_keypair();
184188

185189
let signature = if let Some(aux_rand) = aux_rand {
186190
secp.sign_schnorr_with_aux_rand(

src/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub fn tagged_hash(tag: &str, message: impl AsRef<[u8]>) -> [u8; 32] {
1414
}
1515

1616
/// Create the `to_spend` transaction.
17+
#[allow(clippy::result_large_err)]
1718
pub fn create_to_spend(address: &Address, message: impl AsRef<[u8]>) -> Result<Transaction> {
1819
Ok(Transaction {
1920
version: Version(0),
@@ -45,6 +46,7 @@ pub fn create_to_spend(address: &Address, message: impl AsRef<[u8]>) -> Result<T
4546
}
4647

4748
/// Create the `to_sign` transaction.
49+
#[allow(clippy::result_large_err)]
4850
pub fn create_to_sign(to_spend: &Transaction, witness: Option<Witness>) -> Result<Psbt> {
4951
let inputs = vec![TxIn {
5052
previous_output: OutPoint {

0 commit comments

Comments
 (0)