error.go raw

   1  // Copyright (c) 2013-2021 The btcsuite developers
   2  // Copyright (c) 2015-2021 The Decred developers
   3  
   4  package ecdsa
   5  
   6  import (
   7  	secp_ecdsa "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
   8  )
   9  
  10  // ErrorKind identifies a kind of error.  It has full support for
  11  // errors.Is and errors.As, so the caller can directly check against
  12  // an error kind when determining the reason for an error.
  13  type ErrorKind = secp_ecdsa.ErrorKind
  14  
  15  // Error identifies an error related to an ECDSA signature. It has full
  16  // support for errors.Is and errors.As, so the caller can ascertain the
  17  // specific reason for the error by checking the underlying error.
  18  type Error = secp_ecdsa.ErrorKind
  19