File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,17 @@ The interface is defined in the C header `bitcoinconsensus.h` located in `src/s
30
30
- ` bitcoinconsensus_SCRIPT_FLAGS_VERIFY_NONE `
31
31
- ` bitcoinconsensus_SCRIPT_FLAGS_VERIFY_P2SH ` - Evaluate P2SH ([ BIP16] ( https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki ) ) subscripts
32
32
- ` bitcoinconsensus_SCRIPT_FLAGS_VERIFY_DERSIG ` - Enforce strict DER ([ BIP66] ( https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki ) ) compliance
33
+ - ` bitcoinconsensus_SCRIPT_FLAGS_VERIFY_NULLDUMMY ` - Enforce NULLDUMMY ([ BIP147] ( https://github.com/bitcoin/bips/blob/master/bip-0147.mediawiki ) )
34
+ - ` bitcoinconsensus_SCRIPT_FLAGS_VERIFY_CHECKLOCKTIMEVERIFY ` - Enable CHECKLOCKTIMEVERIFY ([ BIP65] ( https://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki ) )
35
+ - ` bitcoinconsensus_SCRIPT_FLAGS_VERIFY_CHECKSEQUENCEVERIFY ` - Enable CHECKSEQUENCEVERIFY ([ BIP112] ( https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki ) )
36
+ - ` bitcoinconsensus_SCRIPT_FLAGS_VERIFY_WITNESS ` - Enable WITNESS ([ BIP141] ( https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki ) )
33
37
34
38
##### Errors
35
39
- ` bitcoinconsensus_ERR_OK ` - No errors with input parameters * (see the return value of ` bitcoinconsensus_verify_script ` for the verification status)*
36
40
- ` bitcoinconsensus_ERR_TX_INDEX ` - An invalid index for ` txTo `
37
41
- ` bitcoinconsensus_ERR_TX_SIZE_MISMATCH ` - ` txToLen ` did not match with the size of ` txTo `
38
42
- ` bitcoinconsensus_ERR_DESERIALIZE ` - An error deserializing ` txTo `
43
+ - ` bitcoinconsensus_ERR_AMOUNT_REQUIRED ` - Input amount is required if WITNESS is used
39
44
40
45
### Example Implementations
41
46
- [ NBitcoin] ( https://github.com/NicolasDorier/NBitcoin/blob/master/NBitcoin/Script.cs#L814 ) (.NET Bindings)
Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
- // Copyright (c) 2009-2015 The Bitcoin Core developers
2
+ // Copyright (c) 2009-2016 The Bitcoin Core developers
3
3
// Distributed under the MIT software license, see the accompanying
4
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
50
50
bitcoinconsensus_SCRIPT_FLAGS_VERIFY_NONE = 0 ,
51
51
bitcoinconsensus_SCRIPT_FLAGS_VERIFY_P2SH = (1U << 0 ), // evaluate P2SH (BIP16) subscripts
52
52
bitcoinconsensus_SCRIPT_FLAGS_VERIFY_DERSIG = (1U << 2 ), // enforce strict DER (BIP66) compliance
53
+ bitcoinconsensus_SCRIPT_FLAGS_VERIFY_NULLDUMMY = (1U << 4 ), // enforce NULLDUMMY (BIP147)
53
54
bitcoinconsensus_SCRIPT_FLAGS_VERIFY_CHECKLOCKTIMEVERIFY = (1U << 9 ), // enable CHECKLOCKTIMEVERIFY (BIP65)
54
55
bitcoinconsensus_SCRIPT_FLAGS_VERIFY_CHECKSEQUENCEVERIFY = (1U << 10 ), // enable CHECKSEQUENCEVERIFY (BIP112)
55
56
bitcoinconsensus_SCRIPT_FLAGS_VERIFY_WITNESS = (1U << 11 ), // enable WITNESS (BIP141)
You can’t perform that action at this time.
0 commit comments