mirror of
https://github.com/bitcoin/bips.git
synced 2025-06-02 12:20:00 +00:00
Updated Comments:BIP 0199 (markdown)
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
|
||||||
|
|
||||||
|
==========
|
||||||
|
Loading…
x
Reference in New Issue
Block a user