Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Typedefs | Functions
sigencoding.h File Reference
#include <script/script_error.h>
#include <script/sighashtype.h>
#include <cstdint>
#include <vector>
Include dependency graph for sigencoding.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef std::vector< uint8_tvaltype
 

Functions

bool CheckDataSignatureEncoding (const valtype &vchSig, uint32_t flags, ScriptError *serror)
 Check that the signature provided on some data is properly encoded.
 
bool CheckTransactionSignatureEncoding (const valtype &vchSig, uint32_t flags, ScriptError *serror)
 Check that the signature provided to authentify a transaction is properly encoded.
 
bool CheckTransactionECDSASignatureEncoding (const valtype &vchSig, uint32_t flags, ScriptError *serror)
 Check that the signature provided to authentify a transaction is properly encoded ECDSA signature.
 
bool CheckTransactionSchnorrSignatureEncoding (const valtype &vchSig, uint32_t flags, ScriptError *serror)
 Check that the signature provided to authentify a transaction is properly encoded Schnorr signature (or null).
 
bool CheckPubKeyEncoding (const valtype &vchPubKey, uint32_t flags, ScriptError *serror)
 Check that a public key is encoded properly.
 

Typedef Documentation

◆ valtype

Definition at line 16 of file sigencoding.h.

Function Documentation

◆ CheckDataSignatureEncoding()

bool CheckDataSignatureEncoding ( const valtype vchSig,
uint32_t  flags,
ScriptError serror 
)

Check that the signature provided on some data is properly encoded.

Signatures passed to OP_CHECKDATASIG and its verify variant must be checked using this function.

Definition at line 202 of file sigencoding.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckPubKeyEncoding()

bool CheckPubKeyEncoding ( const valtype vchPubKey,
uint32_t  flags,
ScriptError serror 
)

Check that a public key is encoded properly.

Definition at line 305 of file sigencoding.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckTransactionECDSASignatureEncoding()

bool CheckTransactionECDSASignatureEncoding ( const valtype vchSig,
uint32_t  flags,
ScriptError serror 
)

Check that the signature provided to authentify a transaction is properly encoded ECDSA signature.

Signatures passed to OP_CHECKMULTISIG and its verify variant must be checked using this function.

Definition at line 265 of file sigencoding.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckTransactionSchnorrSignatureEncoding()

bool CheckTransactionSchnorrSignatureEncoding ( const valtype vchSig,
uint32_t  flags,
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.

Definition at line 277 of file sigencoding.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckTransactionSignatureEncoding()

bool CheckTransactionSignatureEncoding ( const valtype vchSig,
uint32_t  flags,
ScriptError serror 
)

Check that the signature provided to authentify a transaction is properly encoded.

Signatures passed to OP_CHECKSIG and its verify variant must be checked using this function.

Definition at line 254 of file sigencoding.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: