summaryrefslogtreecommitdiff
path: root/cli/vendor/github.com/btcsuite/btcd/btcec/v2/ecdsa/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli/vendor/github.com/btcsuite/btcd/btcec/v2/ecdsa/error.go')
-rw-r--r--cli/vendor/github.com/btcsuite/btcd/btcec/v2/ecdsa/error.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/vendor/github.com/btcsuite/btcd/btcec/v2/ecdsa/error.go b/cli/vendor/github.com/btcsuite/btcd/btcec/v2/ecdsa/error.go
new file mode 100644
index 0000000..a30d63b
--- /dev/null
+++ b/cli/vendor/github.com/btcsuite/btcd/btcec/v2/ecdsa/error.go
@@ -0,0 +1,18 @@
+// Copyright (c) 2013-2021 The btcsuite developers
+// Copyright (c) 2015-2021 The Decred developers
+
+package ecdsa
+
+import (
+ secp_ecdsa "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
+)
+
+// ErrorKind 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 ErrorKind = secp_ecdsa.ErrorKind
+
+// Error identifies an error related to an ECDSA 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 = secp_ecdsa.ErrorKind