1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-05-26 12:10:14 +00:00

Updated Comments:BIP 0199 (markdown)

Johnson Lau 2017-08-10 18:03:52 +08:00
parent 51a3002e8c
commit e9ad35cb75

@ -1 +1,17 @@
In the scripts in this proposal, pubkey hashes are used for the buyer and seller; is there an advantage over using just pubkeys? I can see only a disadvantage, i.e. increased space usage in redeeming.
In the scripts in this proposal, pubkey hashes are used for the buyer and seller; is there an advantage over using just pubkeys? I can see only a disadvantage, i.e. increased space usage in redeeming.
==========
Should directly use pubkey, instead of pubkey hash. Using pubkey hash will require more witness space for no benefit. The following script should consume the minimal space:
[HASHOP] <digest> OP_EQUAL
OP_IF
<seller pubkey>
OP_ELSE
<num> [TIMEOUTOP] OP_DROP <buyer pubkey>
OP_ENDIF
OP_CHECKSIG
~~Johnson Lau
==========