Changeset View
Changeset View
Standalone View
Standalone View
src/script/sigencoding.h
Show All 21 Lines | if (vchSig.size() == 0) { | ||||
return SigHashType(0); | return SigHashType(0); | ||||
} | } | ||||
return SigHashType(vchSig[vchSig.size() - 1]); | return SigHashType(vchSig[vchSig.size() - 1]); | ||||
} | } | ||||
} // namespace | } // namespace | ||||
bool CheckSignatureEncoding(const valtype &vchSig, uint32_t flags, | /** | ||||
* Check that the signature provided to authentify a transaction is properly | |||||
* encoded. Signatures passed to OP_CHECKSIG, OP_CHECKMULTISIG and their verify | |||||
* variants must be checked using this function. | |||||
*/ | |||||
bool CheckTransactionSignatureEncoding(const valtype &vchSig, uint32_t flags, | |||||
ScriptError *serror); | ScriptError *serror); | ||||
/** | |||||
* Check that a public key is encoded properly. | |||||
*/ | |||||
bool CheckPubKeyEncoding(const valtype &vchPubKey, uint32_t flags, | bool CheckPubKeyEncoding(const valtype &vchPubKey, uint32_t flags, | ||||
ScriptError *serror); | ScriptError *serror); | ||||
#endif // BITCOIN_SCRIPT_SIGENCODING_H | #endif // BITCOIN_SCRIPT_SIGENCODING_H |