1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-2015 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.
6
#ifndef BITCOIN_WALLET_WALLET_ISMINE_H
7
#define BITCOIN_WALLET_WALLET_ISMINE_H
9
#include "script/standard.h"
16
/** IsMine() return codes */
20
//! Indicates that we dont know how to create a scriptSig that would solve this if we were given the appropriate private keys
21
ISMINE_WATCH_UNSOLVABLE = 1,
22
//! Indicates that we know how to create a scriptSig that would solve this if we were given the appropriate private keys
23
ISMINE_WATCH_SOLVABLE = 2,
24
ISMINE_WATCH_ONLY = ISMINE_WATCH_SOLVABLE | ISMINE_WATCH_UNSOLVABLE,
26
ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE
28
/** used for bitflags of isminetype */
29
typedef uint8_t isminefilter;
31
isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
32
isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest);
34
#endif // BITCOIN_WALLET_WALLET_ISMINE_H