diff options
| author | Pieter Wuille <[email protected]> | 2020-09-11 14:33:30 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-10-12 17:15:40 -0700 |
| commit | 0664f5fe1f77f08d235aa3750b59428257b0b91d (patch) | |
| tree | fe5078625aa3e9b7cf34b51e6eb66e8fccf0d74f /src/script/script_error.cpp | |
| parent | Implement Taproot signature hashing (BIP 341) (diff) | |
| download | discoin-0664f5fe1f77f08d235aa3750b59428257b0b91d.tar.xz discoin-0664f5fe1f77f08d235aa3750b59428257b0b91d.zip | |
Support for Schnorr signatures and integration in SignatureCheckers (BIP 340)
This enables the schnorrsig module in libsecp256k1, adds the relevant types
and functions to src/pubkey, as well as in higher-level `SignatureChecker`
classes. The (verification side of the) BIP340 test vectors is also added.
Diffstat (limited to 'src/script/script_error.cpp')
| -rw-r--r-- | src/script/script_error.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/script_error.cpp b/src/script/script_error.cpp index 3b383393f..9c49ced3e 100644 --- a/src/script/script_error.cpp +++ b/src/script/script_error.cpp @@ -91,6 +91,12 @@ std::string ScriptErrorString(const ScriptError serror) return "Witness provided for non-witness script"; case SCRIPT_ERR_WITNESS_PUBKEYTYPE: return "Using non-compressed keys in segwit"; + case SCRIPT_ERR_SCHNORR_SIG_SIZE: + return "Invalid Schnorr signature size"; + case SCRIPT_ERR_SCHNORR_SIG_HASHTYPE: + return "Invalid Schnorr signature hash type"; + case SCRIPT_ERR_SCHNORR_SIG: + return "Invalid Schnorr signature"; case SCRIPT_ERR_OP_CODESEPARATOR: return "Using OP_CODESEPARATOR in non-witness script"; case SCRIPT_ERR_SIG_FINDANDDELETE: |