d042854SQUASH "Implement watchonly support in fundrawtransaction" (Matt Corallo)428a898SQUASH "Add have-pubkey distinction to ISMINE flags" (Matt Corallo)6bdb474Implement watchonly support in fundrawtransaction (Matt Corallo)f5813bdAdd logic to track pubkeys as watch-only, not just scripts (Matt Corallo)d3354c5Add have-pubkey distinction to ISMINE flags (Matt Corallo)5c17059Update importaddress help to push its use to script-only (Matt Corallo)a1d7df3Add importpubkey method to import a watch-only pubkey (Matt Corallo)907a425Add p2sh option to importaddress to import redeemScripts (Matt Corallo)983d2d9Split up importaddress into helper functions (Matt Corallo)cfc3dd3Also remove pay-2-pubkey from watch when adding a priv key (Matt Corallo)
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
|
// Copyright (c) 2009-2014 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_WALLET_WALLET_ISMINE_H
|
|
#define BITCOIN_WALLET_WALLET_ISMINE_H
|
|
|
|
#include "script/standard.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
class CKeyStore;
|
|
class CScript;
|
|
|
|
/** IsMine() return codes */
|
|
enum isminetype
|
|
{
|
|
ISMINE_NO = 0,
|
|
//! Indicates that we dont know how to create a scriptSig that would solve this if we were given the appropriate private keys
|
|
ISMINE_WATCH_UNSOLVABLE = 1,
|
|
//! Indicates that we know how to create a scriptSig that would solve this if we were given the appropriate private keys
|
|
ISMINE_WATCH_SOLVABLE = 2,
|
|
ISMINE_WATCH_ONLY = ISMINE_WATCH_SOLVABLE | ISMINE_WATCH_UNSOLVABLE,
|
|
ISMINE_SPENDABLE = 4,
|
|
ISMINE_ALL = ISMINE_WATCH_ONLY | ISMINE_SPENDABLE
|
|
};
|
|
/** used for bitflags of isminetype */
|
|
typedef uint8_t isminefilter;
|
|
|
|
isminetype IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
|
|
isminetype IsMine(const CKeyStore& keystore, const CTxDestination& dest);
|
|
|
|
#endif // BITCOIN_WALLET_WALLET_ISMINE_H
|