Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradStaniec committed Dec 9, 2024
1 parent 69f6f62 commit 668d831
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crypto/eots/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import (
ecdsa_schnorr "github.com/decred/dcrd/dcrec/secp256k1/v4/schnorr"
)

// KindError identifies a kind of error. It has full support for errors.Is
// KindOfError identifies a kind of error. It has full support for errors.Is
// and errors.As, so the caller can directly check against an error kind
// when determining the reason for an error.
type KindError = ecdsa_schnorr.ErrorKind
type KindOfError = ecdsa_schnorr.ErrorKind

// Error identifies an error related to a schnorr signature. It has full
// support for errors.Is and errors.As, so the caller can ascertain the
// specific reason for the error by checking the underlying error.
type Error = ecdsa_schnorr.Error

// signatureError creates an Error given a set of arguments.
func signatureError(kind KindError, desc string) Error {
func signatureError(kind KindOfError, desc string) Error {
return Error{Err: kind, Description: desc}
}

0 comments on commit 668d831

Please sign in to comment.