Add SIGNATURE_BAD_CONTEXT status to verification error.
Add a special status for verification errors that are caused by the signature context.
This commit is contained in:
parent
ad18d59548
commit
257c381604
4 changed files with 18 additions and 7 deletions
|
|
@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Changed
|
||||
- The `SignatureVerificationError` struct now has a `Cause error` field, which is returned by the the Unwrap function. The cause is also included in the error message.
|
||||
NB: If the caller was relying on the exact message of the error, it might break the flow.
|
||||
- When a signature fails verification because of the signature context, it returns a `SignatureVerificationError` with
|
||||
status `constants.SIGNATURE_BAD_CONTEXT` instead of `constants.SIGNATURE_FAILED`.
|
||||
|
||||
## [2.6.1] 2023-03-22
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue