mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans, usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0. Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
26 lines
942 B
Go
26 lines
942 B
Go
// Copyright (c) 2013-2017 The btcsuite developers
|
|
// Copyright (c) 2015-2021 The Decred developers
|
|
// Use of this source code is governed by an ISC
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package schnorr
|
|
|
|
import (
|
|
ecdsa_schnorr "github.com/decred/dcrd/dcrec/secp256k1/v4/schnorr"
|
|
)
|
|
|
|
// 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 = 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 ErrorKind, desc string) Error {
|
|
return Error{Err: kind, Description: desc}
|
|
}
|