![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
#include <boost/optional.hpp>
#include <hash.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <streams.h>
Go to the source code of this file.
Classes | |
struct | KeyOriginInfo |
class | SigningProvider |
An interface to be implemented by keystores that support signing. More... | |
class | HidingSigningProvider |
struct | FlatSigningProvider |
class | BaseSignatureCreator |
Interface for signature creators. More... | |
class | MutableTransactionSignatureCreator |
A signature creator for transactions. More... | |
struct | SignatureData |
struct | PSBTInput |
A structure for PSBTs which contain per-input information. More... | |
struct | PSBTOutput |
A structure for PSBTs which contains per output information. More... | |
struct | PartiallySignedTransaction |
A version of CTransaction with the PSBT format. More... | |
Typedefs | |
typedef std::pair< CPubKey, std::vector< unsigned char > > | SigPair |
Functions | |
FlatSigningProvider | Merge (const FlatSigningProvider &a, const FlatSigningProvider &b) |
template<typename Stream , typename... X> | |
void | SerializeToVector (Stream &s, const X &... args) |
template<typename Stream , typename... X> | |
void | UnserializeFromVector (Stream &s, X &... args) |
template<typename Stream > | |
void | DeserializeHDKeypaths (Stream &s, const std::vector< unsigned char > &key, std::map< CPubKey, KeyOriginInfo > &hd_keypaths) |
template<typename Stream > | |
void | SerializeHDKeypaths (Stream &s, const std::map< CPubKey, KeyOriginInfo > &hd_keypaths, uint8_t type) |
bool | ProduceSignature (const SigningProvider &provider, const BaseSignatureCreator &creator, const CScript &scriptPubKey, SignatureData &sigdata) |
Produce a script signature using a generic signature creator. More... | |
bool | SignSignature (const SigningProvider &provider, const CScript &fromPubKey, CMutableTransaction &txTo, unsigned int nIn, const CAmount &amount, int nHashType) |
Produce a script signature for a transaction. More... | |
bool | SignSignature (const SigningProvider &provider, const CTransaction &txFrom, CMutableTransaction &txTo, unsigned int nIn, int nHashType) |
bool | SignPSBTInput (const SigningProvider &provider, const CMutableTransaction &tx, PSBTInput &input, int index, int sighash=SIGHASH_ALL) |
Signs a PSBTInput, verifying that all provided data matches what is being signed. More... | |
SignatureData | DataFromTransaction (const CMutableTransaction &tx, unsigned int nIn, const CTxOut &txout) |
Extract signature data from a transaction input, and insert it. More... | |
void | UpdateInput (CTxIn &input, const SignatureData &data) |
bool | IsSolvable (const SigningProvider &provider, const CScript &script) |
Variables | |
const SigningProvider & | DUMMY_SIGNING_PROVIDER |
const BaseSignatureCreator & | DUMMY_SIGNATURE_CREATOR |
A signature creator that just produces 71-byte empty signatures. More... | |
const BaseSignatureCreator & | DUMMY_MAXIMUM_SIGNATURE_CREATOR |
A signature creator that just produces 72-byte empty signatures. More... | |
SignatureData DataFromTransaction | ( | const CMutableTransaction & | tx, |
unsigned int | nIn, | ||
const CTxOut & | txout | ||
) |
void DeserializeHDKeypaths | ( | Stream & | s, |
const std::vector< unsigned char > & | key, | ||
std::map< CPubKey, KeyOriginInfo > & | hd_keypaths | ||
) |
bool IsSolvable | ( | const SigningProvider & | provider, |
const CScript & | script | ||
) |
FlatSigningProvider Merge | ( | const FlatSigningProvider & | a, |
const FlatSigningProvider & | b | ||
) |
bool ProduceSignature | ( | const SigningProvider & | provider, |
const BaseSignatureCreator & | creator, | ||
const CScript & | scriptPubKey, | ||
SignatureData & | sigdata | ||
) |
void SerializeHDKeypaths | ( | Stream & | s, |
const std::map< CPubKey, KeyOriginInfo > & | hd_keypaths, | ||
uint8_t | type | ||
) |
void SerializeToVector | ( | Stream & | s, |
const X &... | args | ||
) |
bool SignPSBTInput | ( | const SigningProvider & | provider, |
const CMutableTransaction & | tx, | ||
PSBTInput & | input, | ||
int | index, | ||
int | sighash = SIGHASH_ALL |
||
) |
bool SignSignature | ( | const SigningProvider & | provider, |
const CScript & | fromPubKey, | ||
CMutableTransaction & | txTo, | ||
unsigned int | nIn, | ||
const CAmount & | amount, | ||
int | nHashType | ||
) |
bool SignSignature | ( | const SigningProvider & | provider, |
const CTransaction & | txFrom, | ||
CMutableTransaction & | txTo, | ||
unsigned int | nIn, | ||
int | nHashType | ||
) |
void UnserializeFromVector | ( | Stream & | s, |
X &... | args | ||
) |
void UpdateInput | ( | CTxIn & | input, |
const SignatureData & | data | ||
) |
const BaseSignatureCreator& DUMMY_MAXIMUM_SIGNATURE_CREATOR |
const BaseSignatureCreator& DUMMY_SIGNATURE_CREATOR |
const SigningProvider& DUMMY_SIGNING_PROVIDER |