Skip to content

Commit 1b7bf8e

Browse files
authored
Merge pull request bitcoin#981 from apoelstra/2020-08-rename-hash-preimages
BIP174: add `_IN_` to names of new hash preimage fields
2 parents 602f497 + 983b984 commit 1b7bf8e

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

bip-0174.mediawiki

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,25 +200,25 @@ The currently defined per-input types are defined as follows:
200200
** Value: The UTF-8 encoded commitment message string for the proof-of-reserves. See [[bip-0127.mediawiki|BIP 127]] for more information.
201201
*** <tt>{porCommitment}</tt>
202202
203-
* Type: RIPEMD160 preimage <tt>PSBT_RIPEMD160 = 0x0a</tt>
203+
* Type: RIPEMD160 preimage <tt>PSBT_IN_RIPEMD160 = 0x0a</tt>
204204
** Key: The resulting hash of the preimage
205205
*** <tt>{0x0a}|{20-byte hash}</tt>
206206
** Value: The hash preimage, encoded as a byte vector, which must equal the key when run through the `RIPEMD160` algorithm
207207
*** <tt>{preimage}</tt>
208208
209-
* Type: SHA256 preimage <tt>PSBT_SHA256 = 0x0b</tt>
209+
* Type: SHA256 preimage <tt>PSBT_IN_SHA256 = 0x0b</tt>
210210
** Key: The resulting hash of the preimage
211211
*** <tt>{0x0b}|{32-byte hash}</tt>
212212
** Value: The hash preimage, encoded as a byte vector, which must equal the key when run through the `SHA256` algorithm
213213
*** <tt>{preimage}</tt>
214214
215-
* Type: HASH160 preimage <tt>PSBT_HASH160 = 0x0c</tt>
215+
* Type: HASH160 preimage <tt>PSBT_IN_HASH160 = 0x0c</tt>
216216
** Key: The resulting hash of the preimage
217217
*** <tt>{0x0c}|{20-byte hash}</tt>
218218
** Value: The hash preimage, encoded as a byte vector, which must equal the key when run through the `SHA256` algorithm followed by the `RIPEMD160` algorithm
219219
*** <tt>{preimage}</tt>
220220
221-
* Type: HASH256 preimage <tt>PSBT_HASH256 = 0x0d</tt>
221+
* Type: HASH256 preimage <tt>PSBT_IN_HASH256 = 0x0d</tt>
222222
** Key: The resulting hash of the preimage
223223
*** <tt>{0x0d}|{32-byte hash}</tt>
224224
** Value: The hash preimage, encoded as a byte vector, which must equal the key when run through the `SHA256` algorithm twice
@@ -839,6 +839,26 @@ Any data types, their associated scope and BIP number must be defined here
839839
| [[bip-0127.mediawiki|BIP 127]]
840840
|-
841841
| Input
842+
| 10
843+
| PSBT_IN_RIPEMD160
844+
| BIP 174
845+
|-
846+
| Input
847+
| 11
848+
| PSBT_IN_SHA256
849+
| BIP 174
850+
|-
851+
| Input
852+
| 12
853+
| PSBT_IN_HASH160
854+
| BIP 174
855+
|-
856+
| Input
857+
| 13
858+
| PSBT_IN_HASH256
859+
| BIP 174
860+
|-
861+
| Input
842862
| 252
843863
| PSBT_IN_PROPRIETARY
844864
| BIP 174

0 commit comments

Comments
 (0)