Includes two changes to align the labeled test vectors and validation reference with BIP-375:
- Sort silent payment codes lexicographically then by output index before assigning k values.
- PSBT_OUT_SP_V0_INFO should carry the labeled-spend public key, not the base-spend public key.
Changed vectors:
- can finalize: one P2WPKH input / two mixed outputs - labeled sp output and BIP 32 change
- can finalize: one input / two sp outputs - output 0 has no label / output 1 uses label=0 convention for sp change
- can finalize: three sp outputs (same scan key) - output 0 uses label=1, outputs 1 and 2 uses label=2 (same spend key)
Test Runner Output
Summary: 41 passed, 0 failed