-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update bitcoin crate to 0.28.1 #1389
Conversation
devrandom
commented
Mar 27, 2022
•
edited
Loading
edited
- keys
- witness
- deprecations
is this a good time to do this? is the rust-bitcoin release imminent? |
Yea, I hear its coming so update is always good. One question before we pull the trigger on anything though is the WASM issues in rust-secp - rust-bitcoin/rust-secp256k1#427 and rust-bitcoin/rust-secp256k1#419 |
Looks like the 427 is really just the dev missing feature flag. And 419 seems to be progressing. |
Codecov Report
@@ Coverage Diff @@
## main #1389 +/- ##
==========================================
+ Coverage 90.89% 91.40% +0.50%
==========================================
Files 75 75
Lines 41624 45218 +3594
Branches 41624 45218 +3594
==========================================
+ Hits 37834 41330 +3496
- Misses 3790 3888 +98
Continue to review full report at Codecov.
|
Note that MSRV for |
Light review ACK LGTM. Will take a closer look at the larger diffs in little while! |
Looks like that was an accident. Hopefully rust-bitcoin/rust-bitcoin#690 will be included in a point release - I'll revert the MSRV changes once that's done. |
If upstream is gonna do a point release soon lets just wait for that here, IMO. |
Upstream cut a point release so this should be good now, I think, need to re-add the MSRV changes in CI. |
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for tackling this one!
$sum_actual_sigs += $sighash_parts.access_witness($idx)[0].len(); | ||
let sighash = hash_to_message!(&$sighash_parts.segwit_signature_hash($idx, &redeem_script, $amount, EcdsaSighashType::All).unwrap()[..]); | ||
let sig = secp_ctx.sign_ecdsa(&sighash, &privkey); | ||
let mut ser_sig = sig.serialize_der().to_vec(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was gonna nag about the extra allocation here, but instead I just did the util method upstream so we can fix it later - rust-bitcoin/rust-bitcoin#989
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT looks good to me. Only added two minor remarks and a question. Feel free to ignore!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now!