From 7478ee3260c0d3c0cef39233931b307691764edc Mon Sep 17 00:00:00 2001 From: jl2012 Date: Fri, 24 Jun 2016 01:59:25 +0800 Subject: BIP112/114 example fix --- bip-0114.mediawiki | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bip-0114.mediawiki') 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 - + ELSE EQUAL NOTIF "Timestamp" CHECKLOCKTIMEVERIFY DROP ENDIF - + ENDIF CHECKSIG To create a MAST Root, it is flattened to 3 mutually exclusive branches: - HASH160 EQUALVERIFY "24h" CHECKSEQUENCEVERIFY DROP CHECKSIG - HASH160 EQUALVERIFY CHECKSIG - "Timestamp" CHECKLOCKTIMEVERIFY DROP CHECKSIG + HASH160 EQUALVERIFY "24h" CHECKSEQUENCEVERIFY DROP CHECKSIG + HASH160 EQUALVERIFY CHECKSIG + "Timestamp" CHECKLOCKTIMEVERIFY DROP CHECKSIG which significantly improves readability and reduces the witness size when it is redeemed. -- cgit v1.2.3