From e9ad35cb75b35b44458b6fb7ca033f51ceb7dcdc Mon Sep 17 00:00:00 2001 From: Johnson Lau Date: Thu, 10 Aug 2017 18:03:52 +0800 Subject: [PATCH] Updated Comments:BIP 0199 (markdown) --- Comments:BIP-0199.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Comments:BIP-0199.md b/Comments:BIP-0199.md index 3fe06f6..c5ab9fd 100644 --- a/Comments:BIP-0199.md +++ b/Comments:BIP-0199.md @@ -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. \ No newline at end of file +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] OP_EQUAL + OP_IF + + OP_ELSE + [TIMEOUTOP] OP_DROP + OP_ENDIF + OP_CHECKSIG + +~~Johnson Lau + +==========