add support for P2WPKH#74
Conversation
86648f2 to
49fb569
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #74 +/- ##
==========================================
+ Coverage 95.16% 95.19% +0.03%
==========================================
Files 23 23
Lines 11552 11628 +76
==========================================
+ Hits 10993 11069 +76
Misses 559 559
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zoedberg
left a comment
There was a problem hiding this comment.
Please see the requested changes. Also please rename the commit since Segwit_v0 support is imprecise, this PR is adding support for just P2WPKH, not for all segwit v0 scripts. I would rename it to add support for P2WPKH
57776b5 to
48bfd07
Compare
zoedberg
left a comment
There was a problem hiding this comment.
Please address the requested changes
58d7c25 to
900f381
Compare
c40e5e6 to
cb24b44
Compare
cb24b44 to
02ac4e5
Compare
zoedberg
left a comment
There was a problem hiding this comment.
Please address the requested changes
02ac4e5 to
348afa2
Compare
PR: Add P2WPKH (SegWit V0) support
Summary
ScriptTypeenum (P2wpkh/P2tr) withP2tras the default, preserving full backward compatibilityscript_typefield toWalletDatawith#[serde(default)]so existing serialized data continues to workgenerate_keys_with_script_typeandrestore_keys_with_script_typepublic API functionsScriptTypeenum andWalletData.script_typefieldBackward compatibility
ScriptTypedefaults toP2tr— existing wallets and serializedWalletDataare unaffectedgenerate_keys/restore_keysunchanged in signature and behavior#[serde(default)]onscript_typemeans JSON without the field deserializes toP2trTest check
cargo test -- segwit_v0— both P2WPKH integration tests passed