Commit 3e864cf
committed
feat(wasm-utxo): add Network::requires_prev_tx_for_legacy_input predicate
Rust-side source of truth for whether a legacy (non-segwit) transparent
input needs the full previous transaction (non_witness_utxo) or can rely
on witness_utxo alone. Mirrors requiresPrevTxForP2sh in
js/fixedScriptWallet/prevTx.ts (added in T1-3654 / PR #306), generalized
from P2SH to legacy inputs generally: ZIP-243 (Zcash) and BIP-143/FORKID
(BCH family) sighashes commit the input amount regardless of script
type, making non_witness_utxo cryptographically pointless for those
coins.
Refs: T1-36721 parent f628a43 commit 3e864cf
1 file changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
309 | 333 | | |
310 | 334 | | |
311 | 335 | | |
| |||
403 | 427 | | |
404 | 428 | | |
405 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
406 | 462 | | |
407 | 463 | | |
408 | 464 | | |
| |||
0 commit comments