mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-13 19:16:49 +01:00
Update fields in bip174
This commit is contained in:
parent
144c4a3a15
commit
eb10cdb4ce
2 changed files with 70 additions and 4 deletions
|
@ -171,6 +171,28 @@ The currently defined global types are as follows:
|
|||
| 2
|
||||
| [[bip-0370.mediawiki|370]]
|
||||
|-
|
||||
| Silent Payment Global ECDH Share
|
||||
| <tt>PSBT_GLOBAL_SP_ECDH_SHARE = 0x07</tt>
|
||||
| <tt><33 byte scan key></tt>
|
||||
| The scan key that this ECDH share is for.
|
||||
| <tt><33 byte share></tt>
|
||||
| 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.
|
||||
|
|
||||
| 0
|
||||
| 2
|
||||
| [[bip-0375.mediawiki|375]]
|
||||
|-
|
||||
| Silent Payment Global DLEQ Proof
|
||||
| <tt>PSBT_GLOBAL_SP_DLEQ = 0x08</tt>
|
||||
| <tt><33 byte scan key></tt>
|
||||
| The scan key that this proof covers.
|
||||
| <tt><64-byte proof></tt>
|
||||
| A BIP374 DLEQ proof computed for the matching ECDH share.
|
||||
|
|
||||
| 0
|
||||
| 2
|
||||
| [[bip-0375.mediawiki|375]]
|
||||
|-
|
||||
| PSBT Version Number
|
||||
| <tt>PSBT_GLOBAL_VERSION = 0xFB</tt>
|
||||
| None
|
||||
|
@ -529,6 +551,28 @@ derived from an aggregate key.
|
|||
| 0, 2
|
||||
| [[bip-0373.mediawiki|373]]
|
||||
|-
|
||||
| Silent Payment Input ECDH Share
|
||||
| <tt>PSBT_IN_SP_ECDH_SHARE = 0x1d</tt>
|
||||
| <tt><33 byte scan key></tt>
|
||||
| The scan key that this ECDH share is for.
|
||||
| <tt><33 byte share></tt>
|
||||
| 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.
|
||||
|
|
||||
| 0
|
||||
| 2
|
||||
| [[bip-0375.mediawiki|375]]
|
||||
|-
|
||||
| Silent Payment Input DLEQ Proof
|
||||
| <tt>PSBT_IN_SP_DLEQ = 0x1e</tt>
|
||||
| <tt><33 byte scan key></tt>
|
||||
| The scan key that this proof covers.
|
||||
| <tt><64-byte proof></tt>
|
||||
| A BIP374 DLEQ proof computed for the matching ECDH share.
|
||||
|
|
||||
| 0
|
||||
| 2
|
||||
| [[bip-0375.mediawiki|375]]
|
||||
|-
|
||||
| Proprietary Use Type
|
||||
| <tt>PSBT_IN_PROPRIETARY = 0xFC</tt>
|
||||
| <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
|
|||
| None
|
||||
| No key data
|
||||
| <tt><bytes script></tt>
|
||||
| The script for this output, also known as the scriptPubKey. Must be omitted in PSBTv0. Must be provided in PSBTv2.
|
||||
| 2
|
||||
| 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.
|
||||
|
|
||||
| 0
|
||||
| 2
|
||||
| [[bip-0370.mediawiki|370]]
|
||||
| [[bip-0370.mediawiki|370]], [[bip-0375.mediawiki|375]]
|
||||
|-
|
||||
| Taproot Internal Key
|
||||
| <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
|
|||
| 0, 2
|
||||
| [[bip-0373.mediawiki|373]]
|
||||
|-
|
||||
| Silent Payment Data
|
||||
| <tt>PSBT_OUT_SP_V0_INFO = 0x09</tt>
|
||||
| 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.
|
||||
|
|
||||
| 0
|
||||
| 2
|
||||
| [[bip-0375.mediawiki|375]]
|
||||
|-
|
||||
| Silent Payment Label
|
||||
| <tt>PSBT_OUT_SP_V0_LABEL = 0x10</tt>
|
||||
| None
|
||||
| No key data
|
||||
| <tt><32-bit little endian uint label></tt>
|
||||
| The label to use to compute the spend key of the silent payments address to verify change.
|
||||
|
|
||||
| 0
|
||||
| 2
|
||||
| [[bip-0375.mediawiki|375]]
|
||||
|-
|
||||
| BIP 353 DNSSEC proof
|
||||
| <tt>PSBT_OUT_DNSSEC_PROOF = 0x35</tt>
|
||||
| None
|
||||
|
|
|
@ -104,7 +104,7 @@ The new per-input types are defined as follows:
|
|||
| 2
|
||||
|}
|
||||
|
||||
One new per-output type is defined as follows:
|
||||
The new per-output types are defined as follows:
|
||||
|
||||
{|
|
||||
! Name
|
||||
|
|
Loading…
Add table
Reference in a new issue