Skip to content

Commit

Permalink
core: bump bdk to e5aa4fe
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Mar 27, 2024
1 parent 091e006 commit 9e21d85
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion keechain-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ default = ["sysinfo"]

[dependencies]
aes = "0.8"
bdk = { git = "https://github.com/bitcoindevkit/bdk", rev = "50c549b5aca3c58bcffce359f4937a8c3eb57a35", default-features = false, features = ["std"] }
bdk = { git = "https://github.com/bitcoindevkit/bdk", rev = "e5aa4fe9e6dc9448b565b6549225558d42dbae8f", default-features = false, features = ["std"] }
bip39 = { version = "2.0", default-features = false, features = ["std", "zeroize"] }
cbc = { version = "0.1", features = ["alloc"] }
chacha20poly1305 = "0.10"
Expand Down
17 changes: 13 additions & 4 deletions keechain-core/src/psbt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ mod tests {
use std::str::FromStr;

use bdk::bitcoin::Network;
use bdk::miniscript::psbt::PsbtExt;
use bip39::Mnemonic;

use super::*;
Expand All @@ -372,10 +371,15 @@ mod tests {
let seed = Seed::new::<&str>(mnemonic, None);
let mut psbt = PartiallySignedTransaction::from_base64("cHNidP8BAIABAAAAAQiqsV3pVy3i3mOXb44eSY6YXfyBJJquLJUFOQgKxqogAQAAAAD9////ApcWAAAAAAAAGXapFFnK2lAxTIKeGfWneG+O4NSYf0KdiKysDAAAAAAAACJRIDah9WL9RrG8cBtYLPY/dqsOd9+Ysh7+hNnInepPfCUoKTclAAABASvmIwAAAAAAACJRIIFkFWTG5s8O4M/FVct0eYcA0ayNYYMfdUK3VDHm3PNNIhXAAMzzAr/xU1CxCRn2xLf6Vk7deJJ1P2IphMFQkGwGZNwjIFSh53RXgXULuDjlB82aLiF9LkqzhtrTHbwF5MJP9JNyrMAhFlSh53RXgXULuDjlB82aLiF9LkqzhtrTHbwF5MJP9JNyOQETYY0ojn8xo/xlOd4vxPBtGqXOW/RgxpD1azdzLllueXNW5FdWAACAAQAAgBv6C4AAAAAAAAAAACEWAMzzAr/xU1CxCRn2xLf6Vk7deJJ1P2IphMFQkGwGZNwZAJv0NUtWAACAAQAAgBv6C4AAAAAAAAAAAAEXIADM8wK/8VNQsQkZ9sS3+lZO3XiSdT9iKYTBUJBsBmTcARggE2GNKI5/MaP8ZTneL8TwbRqlzlv0YMaQ9Ws3cy5ZbnkAAAEFIMyrxjur6FZA49b3vxbW2gGoFCVIDqhp4WQ8eJq6uV9EAQYlAMAiIFQ0gIXoLoC1Uk+d9i2t+6KirZ4znJISAZS7NkP7DSBbrCEHzKvGO6voVkDj1ve/FtbaAagUJUgOqGnhZDx4mrq5X0QZAJv0NUtWAACAAQAAgBv6C4AAAAAAAQAAACEHVDSAhegugLVST532La37oqKtnjOckhIBlLs2Q/sNIFs5ARpaIl7upiRp2Mj47BtMoV8ZSitR752q1zy5u5ZgWQ7Lc1bkV1YAAIABAACAG/oLgAAAAAABAAAAAA==").unwrap();
let finalized = psbt
.sign_custom(&seed, Some(descriptor), Vec::new(), NETWORK, &secp)
.sign_custom(&seed, Some(descriptor.clone()), Vec::new(), NETWORK, &secp)
.unwrap();
assert!(finalized);
psbt.finalize_mut(&secp).unwrap();

// TODO: psbt.finalize_mut(&secp).unwrap();

let wallet = Wallet::new_no_persist(&descriptor.to_string(), None, NETWORK).unwrap();
let signopts = SignOptions::default();
wallet.finalize_psbt(&mut psbt, signopts).unwrap();
}

#[test]
Expand Down Expand Up @@ -404,7 +408,12 @@ mod tests {
.sign_with_descriptor(&seed, descriptor.clone(), Network::Testnet, &secp)
.unwrap();
assert!(finalized);
psbt.finalize_mut(&secp).unwrap();

// TODO: psbt.finalize_mut(&secp).unwrap();

let wallet = Wallet::new_no_persist(&descriptor.to_string(), None, NETWORK).unwrap();
let signopts = SignOptions::default();
wallet.finalize_psbt(&mut psbt, signopts).unwrap();
}
}
}

0 comments on commit 9e21d85

Please sign in to comment.