Skip to content

Commit eb10cdb

Browse files
committed
Update fields in bip174
1 parent 144c4a3 commit eb10cdb

File tree

2 files changed

+70
-4
lines changed

2 files changed

+70
-4
lines changed

bip-0174.mediawiki

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,28 @@ The currently defined global types are as follows:
171171
| 2
172172
| [[bip-0370.mediawiki|370]]
173173
|-
174+
| Silent Payment Global ECDH Share
175+
| <tt>PSBT_GLOBAL_SP_ECDH_SHARE = 0x07</tt>
176+
| <tt><33 byte scan key></tt>
177+
| The scan key that this ECDH share is for.
178+
| <tt><33 byte share></tt>
179+
| An ECDH share for a scan key. The ECDH shared is computed with ''a * B_scan'', where ''a'' is the sum of all private keys of all eligible inputs, and ''B_scan'' is the scan key of a recipient.
180+
|
181+
| 0
182+
| 2
183+
| [[bip-0375.mediawiki|375]]
184+
|-
185+
| Silent Payment Global DLEQ Proof
186+
| <tt>PSBT_GLOBAL_SP_DLEQ = 0x08</tt>
187+
| <tt><33 byte scan key></tt>
188+
| The scan key that this proof covers.
189+
| <tt><64-byte proof></tt>
190+
| A BIP374 DLEQ proof computed for the matching ECDH share.
191+
|
192+
| 0
193+
| 2
194+
| [[bip-0375.mediawiki|375]]
195+
|-
174196
| PSBT Version Number
175197
| <tt>PSBT_GLOBAL_VERSION = 0xFB</tt>
176198
| None
@@ -529,6 +551,28 @@ derived from an aggregate key.
529551
| 0, 2
530552
| [[bip-0373.mediawiki|373]]
531553
|-
554+
| Silent Payment Input ECDH Share
555+
| <tt>PSBT_IN_SP_ECDH_SHARE = 0x1d</tt>
556+
| <tt><33 byte scan key></tt>
557+
| The scan key that this ECDH share is for.
558+
| <tt><33 byte share></tt>
559+
| An ECDH share for a scan key. The ECDH shared is computed with ''a * B_scan'', where ''a'' is the private key of the corresponding prevout public key, and ''B_scan'' is the scan key of a recipient.
560+
|
561+
| 0
562+
| 2
563+
| [[bip-0375.mediawiki|375]]
564+
|-
565+
| Silent Payment Input DLEQ Proof
566+
| <tt>PSBT_IN_SP_DLEQ = 0x1e</tt>
567+
| <tt><33 byte scan key></tt>
568+
| The scan key that this proof covers.
569+
| <tt><64-byte proof></tt>
570+
| A BIP374 DLEQ proof computed for the matching ECDH share.
571+
|
572+
| 0
573+
| 2
574+
| [[bip-0375.mediawiki|375]]
575+
|-
532576
| Proprietary Use Type
533577
| <tt>PSBT_IN_PROPRIETARY = 0xFC</tt>
534578
| <tt><compact size uint identifier length> <bytes identifier> <compact size uint subtype> <bytes subkeydata></tt>
@@ -606,11 +650,11 @@ determine which outputs are change outputs and verify that the change is returni
606650
| None
607651
| No key data
608652
| <tt><bytes script></tt>
609-
| The script for this output, also known as the scriptPubKey. Must be omitted in PSBTv0. Must be provided in PSBTv2.
610-
| 2
653+
| The script for this output, also known as the scriptPubKey. Must be omitted in PSBTv0. Must be provided in PSBTv2 if not sending to a BIP352 silent payment address, otherwise may be omitted.
654+
|
611655
| 0
612656
| 2
613-
| [[bip-0370.mediawiki|370]]
657+
| [[bip-0370.mediawiki|370]], [[bip-0375.mediawiki|375]]
614658
|-
615659
| Taproot Internal Key
616660
| <tt>PSBT_OUT_TAP_INTERNAL_KEY = 0x05</tt>
@@ -659,6 +703,28 @@ required for aggregation. If sorting was done, then the keys must be in the sort
659703
| 0, 2
660704
| [[bip-0373.mediawiki|373]]
661705
|-
706+
| Silent Payment Data
707+
| <tt>PSBT_OUT_SP_V0_INFO = 0x09</tt>
708+
| None
709+
| No key data
710+
| <tt><33 byte scan key> <33 byte spend key></tt>
711+
| The scan and spend public keys from the silent payments address.
712+
|
713+
| 0
714+
| 2
715+
| [[bip-0375.mediawiki|375]]
716+
|-
717+
| Silent Payment Label
718+
| <tt>PSBT_OUT_SP_V0_LABEL = 0x10</tt>
719+
| None
720+
| No key data
721+
| <tt><32-bit little endian uint label></tt>
722+
| The label to use to compute the spend key of the silent payments address to verify change.
723+
|
724+
| 0
725+
| 2
726+
| [[bip-0375.mediawiki|375]]
727+
|-
662728
| BIP 353 DNSSEC proof
663729
| <tt>PSBT_OUT_DNSSEC_PROOF = 0x35</tt>
664730
| None

bip-0375.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The new per-input types are defined as follows:
104104
| 2
105105
|}
106106

107-
One new per-output type is defined as follows:
107+
The new per-output types are defined as follows:
108108

109109
{|
110110
! Name

0 commit comments

Comments
 (0)