Fabcoin Core  0.16.2
P2P Digital Currency
ismine.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2017 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef FABCOIN_SCRIPT_ISMINE_H
7 #define FABCOIN_SCRIPT_ISMINE_H
8 
9 #include "script/standard.h"
10 
11 #include <stdint.h>
12 
13 class CKeyStore;
14 class CScript;
15 
18 {
19  ISMINE_NO = 0,
27 };
29 typedef uint8_t isminefilter;
30 
31 /* isInvalid becomes true when the script is found invalid by consensus or policy. This will terminate the recursion
32  * and return a ISMINE_NO immediately, as an invalid script should never be considered as "mine". This is needed as
33  * different SIGVERSION may have different network rules. Currently the only use of isInvalid is indicate uncompressed
34  * keys in SIGVERSION_WITNESS_V0 script, but could also be used in similar cases in the future
35  */
36 isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey, bool& isInvalid, SigVersion = SIGVERSION_BASE);
37 isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey, SigVersion = SIGVERSION_BASE);
38 isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest, bool& isInvalid, SigVersion = SIGVERSION_BASE);
39 isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest, SigVersion = SIGVERSION_BASE);
40 
41 #endif // FABCOIN_SCRIPT_ISMINE_H
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
Definition: standard.h:79
uint8_t isminefilter
used for bitflags of isminetype
Definition: ismine.h:29
Indicates that we don&#39;t know how to create a scriptSig that would solve this if we were given the app...
Definition: ismine.h:21
isminetype
IsMine() return codes.
Definition: ismine.h:17
Serialized script, used inside transaction inputs and outputs.
Definition: script.h:417
A virtual base class for key stores.
Definition: keystore.h:18
isminetype IsMine(const CKeyStore &keystore, const CScript &scriptPubKey, bool &isInvalid, SigVersion=SIGVERSION_BASE)
Definition: ismine.cpp:47
Indicates that we know how to create a scriptSig that would solve this if we were given the appropria...
Definition: ismine.h:23
SigVersion
Definition: interpreter.h:124