diff options
author | Luke-Jr <luke_github1@dashjr.org> | 2016-06-24 12:36:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-24 12:36:50 +0000 |
commit | eab92a156e11542fa2eea518818e7ca7ccef5c6d (patch) | |
tree | 3b5aba7a8687003dc32906d1840a081119c59a7b /bip-0114.mediawiki | |
parent | ae70f3ec69bf3e66c28fa3a7813c08fdce125dab (diff) | |
parent | 7478ee3260c0d3c0cef39233931b307691764edc (diff) | |
download | bips-eab92a156e11542fa2eea518818e7ca7ccef5c6d.tar.xz |
Merge pull request #411 from jl2012/bip112_114_fix
BIP112/114 example fix
Diffstat (limited to 'bip-0114.mediawiki')
-rw-r--r-- | bip-0114.mediawiki | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bip-0114.mediawiki b/bip-0114.mediawiki index 2d16084..aee8646 100644 --- a/bip-0114.mediawiki +++ b/bip-0114.mediawiki @@ -96,20 +96,20 @@ The following is the "Hashed TIme-Lock Contract" example in [[bip-0112.mediawiki IF "24h" CHECKSEQUENCEVERIFY 2DROP - <Alice key hash> + <Alice's pubkey> ELSE <Commit-Revocation-Hash> EQUAL NOTIF "Timestamp" CHECKLOCKTIMEVERIFY DROP ENDIF - <Bob key hash> + <Bob's pubkey> ENDIF CHECKSIG To create a MAST Root, it is flattened to 3 mutually exclusive branches: - HASH160 <R-HASH> EQUALVERIFY "24h" CHECKSEQUENCEVERIFY DROP <Alice key hash> CHECKSIG - HASH160 <Commit-Revocation-Hash> EQUALVERIFY <Bob key hash> CHECKSIG - "Timestamp" CHECKLOCKTIMEVERIFY DROP <Bob key hash> CHECKSIG + HASH160 <R-HASH> EQUALVERIFY "24h" CHECKSEQUENCEVERIFY DROP <Alice's pubkey> CHECKSIG + HASH160 <Commit-Revocation-Hash> EQUALVERIFY <Bob's pubkey> CHECKSIG + "Timestamp" CHECKLOCKTIMEVERIFY DROP <Bob's pubkey> CHECKSIG which significantly improves readability and reduces the witness size when it is redeemed. |