1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-05-25 17:09:34 +00:00

Merge pull request #756 from stevenroose/por

BIP 127: Simple Proof-of-Reserves Transactions
This commit is contained in:
Luke Dashjr
2019-04-04 02:50:14 +00:00
committed by GitHub
3 changed files with 244 additions and 0 deletions

View File

@@ -174,6 +174,12 @@ The currently defined per-input types are defined as follows:
** Value: The Finalized scriptWitness contains a fully constructed scriptWitness with signatures and any other scripts necessary for the input to pass validation.
*** <tt>{scriptWitness}</tt>
* Type: Proof-of-reserves commitment <tt>PSBT_IN_POR_COMMITMENT = 0x09</tt>
** Key: None. The key must only contain the 1 byte type.
*** <tt>{0x09}</tt>
** Value: The UTF-8 encoded commitment message string for the proof-of-reserves. See [[bip-0127.mediawiki|BIP 127]] for more information.
*** <tt>{porCommitment}</tt>
The currently defined per-output <ref>'''Why do we need per-output data?''' Per-output data allows signers
to verify that the outputs are going to the intended recipient. The output data can also be use by signers to
determine which outputs are change outputs and verify that the change is returning to the correct place.</ref> types are defined as follows:
@@ -698,6 +704,11 @@ Any data types, their associated scope and BIP number must be defined here
| PSBT_IN_FINAL_SCRIPTWITNESS
| BIP 174
|-
| Input
| 9
| PSBT_IN_POR_COMMITMENT
| [[bip-0127.mediawiki|BIP 127]]
|-
| Output
| 0
| PSBT_OUT_REDEEM_SCRIPT