Murch
a34f044bb8
Merge pull request #2310 from zjubiology/master
...
BIP375: check SegWit versions in non-witness UTXOs
2026-11-07 16:41:44 +01:00
zjubiology
97b6274626
BIP375: check SegWit versions in non-witness UTXOs
...
Signed-off-by: zjubiology <zjubiology@outlook.com >
2026-11-07 22:20:18 +08:00
macgyver13
d31236854b
BIP-375: update validation to match sorting outputs with same scan key
...
Fix output script validation for silent payment output ordering when multiple
outputs share the same scan key (labeled addresses of one recipient).
2026-11-04 18:26:44 -05:00
wangjingshuiku
7ccde10a3c
BIP375: validate PSBT_OUT_SP_V0_LABEL length
2026-09-12 17:00:00 +08:00
questfever
e726d13ade
BIP375: correctly detect SegWit v2+ witness programs
2026-08-13 17:29:30 +08:00
macgyver13
897455dab7
BIP-375: skip ineligible inputs when combining ecdh shares
...
add fake ecdh share and dleq proof to P2SH input for valid test: two inputs using per-input ECDH shares - only eligible inputs contribute shares (P2SH excluded)
remove unused return string from is_input_eligible
2026-04-05 20:52:23 -04:00
macgyver13
fb105b7e51
BIP-375: add output scripts validation
...
Add support for computing bip352 output scripts
Extract ECDH shares and public key from PSBT and aggregate both if necessary
Refactor validate_ecdh_coverage to use collect_input_ecdh_and_pubkey
2026-04-04 09:17:46 -04:00
macgyver13
ab30224051
BIP-375: add input eligibility validation
...
Verify segwit version >1 not used if silent payment outputs present (bip352)
Verify SIGHASH_ALL requirement
2026-04-04 09:17:46 -04:00
macgyver13
6a91f88030
BIP-375: add ecdh coverage validation
...
Add deps/dleq.py (Adapted from bip-0374/reference.py)
Extract pubkey from PSBT inputs
- PSBT_IN_BIP32_DERIVATION
- PSBT_IN_WITNESS_UTXO for P2TR
Add script type helpers
- bip352 input eligibility helpers
2026-04-04 09:17:46 -04:00
macgyver13
66053ae879
BIP-375: add test_runner and validate PSBT structure
...
Implement psbt structure checks
Add test_runner.py for processing test vectors
2026-04-04 09:17:46 -04:00
macgyver13
fc9918d8c0
BIP-375: add BIP375PSBT extension classes
...
BIP375PSBT (a PSBT subclass that deserializes into BIP375PSBTMap instances)
BIP375PSBTMap (a PSBTMap subclass with BIP-375 field access helpers)
2026-04-04 09:17:46 -04:00