Changeset View
Changeset View
Standalone View
Standalone View
src/script/sigencoding.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
* encoded ECDSA signature. Signatures passed to OP_CHECKMULTISIG and its verify | * encoded ECDSA signature. Signatures passed to OP_CHECKMULTISIG and its verify | ||||
* variant must be checked using this function. | * variant must be checked using this function. | ||||
*/ | */ | ||||
bool CheckTransactionECDSASignatureEncoding(const valtype &vchSig, | bool CheckTransactionECDSASignatureEncoding(const valtype &vchSig, | ||||
uint32_t flags, | uint32_t flags, | ||||
ScriptError *serror); | ScriptError *serror); | ||||
/** | /** | ||||
* Check that the signature provided to authentify a transaction is properly | |||||
* encoded Schnorr signature (or null). Signatures passed to the new-mode | |||||
* OP_CHECKMULTISIG and its verify variant must be checked using this function. | |||||
*/ | |||||
bool CheckTransactionSchnorrSignatureEncoding(const valtype &vchSig, | |||||
uint32_t flags, | |||||
ScriptError *serror); | |||||
/** | |||||
* Check that a public key is encoded properly. | * 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 |