mirror of
https://github.com/bitcoin/bips.git
synced 2026-11-09 19:47:16 +00:00
Merge pull request #2207 from macgyver13/bip375-labeled-spend
BIP-375: correct labeled test vectors to include labeled-spend key in PSBT_OUT_SP_V0_INFO
This commit is contained in:
3 files changed
+39
-27
No files matched your search
+5
-3
@@ -11,7 +11,7 @@
|
||||
Assigned: 2025-01-08
|
||||
License: BSD-2-Clause
|
||||
Discussion: https://groups.google.com/g/bitcoindev/c/5G5wzqUXyk4
|
||||
Version: 0.1.2
|
||||
Version: 0.1.3
|
||||
Requires: 352, 370, 374
|
||||
</pre>
|
||||
|
||||
@@ -123,7 +123,7 @@ The new per-output types are defined as follows:
|
||||
| None
|
||||
| No key data
|
||||
| <tt><33 byte scan key> <33 byte spend key></tt>
|
||||
| The scan and spend public keys from the silent payments address.
|
||||
| The scan and spend public keys from the silent payments address, referred to in this document as a ''silent payment code''. For a labeled address, the spend key is the labeled spend key ''B<sub>m</sub>''.
|
||||
|
|
||||
| 0
|
||||
| 2
|
||||
@@ -372,7 +372,7 @@ Use the provided [[bip-0375/test_runner.py|test runner]] to validate each test v
|
||||
| one input / two sp outputs - output 0 has no label / output 1 uses label=0 convention for sp change
|
||||
|-
|
||||
| Can Finalize
|
||||
| two sp outputs - output 0 uses label=3 / output 1 uses label=1
|
||||
| three sp outputs (same scan key) - output 0 uses label=1, outputs 1 and 2 uses label=2 (same spend key)
|
||||
|-
|
||||
| Can Finalize
|
||||
| two inputs using per-input ECDH shares - only eligible inputs contribute shares (P2SH excluded)
|
||||
@@ -407,6 +407,8 @@ Use the provided [[bip-0375/test_runner.py|test runner]] to validate each test v
|
||||
|
||||
== Changelog ==
|
||||
|
||||
* '''0.1.3''' (2026-09-29):
|
||||
** Correct labeled test vectors and reference: include labeled-spend key in PSBT_OUT_SP_V0_INFO.
|
||||
* '''0.1.2''' (2026-09-27):
|
||||
** Validate PSBT_OUT_SP_V0_LABEL is exactly 4 bytes; add invalid test vector for wrong length.
|
||||
* '''0.1.1''' (2026-04-16):
|
||||
|
||||
Reference in new issue
Block a user