Skip to content

Commit e30d465

Browse files
committed
bip174: add _IN_ to new hash preimage fields
1 parent 9d44e59 commit e30d465

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bip-0174.mediawiki

Lines changed: 4 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

0 commit comments

Comments
 (0)