mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
crypto: document errInvalidPubkey error variable
This commit is contained in:
parent
ce8cec007c
commit
9a6200eb60
1 changed files with 6 additions and 1 deletions
|
|
@ -49,7 +49,12 @@ var (
|
|||
secp256k1halfN = new(big.Int).Div(secp256k1N, big.NewInt(2))
|
||||
)
|
||||
|
||||
var errInvalidPubkey = errors.New("invalid secp256k1 public key")
|
||||
var (
|
||||
// errInvalidPubkey is returned when an invalid secp256k1 public key is provided.
|
||||
// This can occur during public key unmarshaling if the provided bytes do not
|
||||
// represent a valid point on the secp256k1 curve.
|
||||
errInvalidPubkey = errors.New("invalid secp256k1 public key")
|
||||
)
|
||||
|
||||
// EllipticCurve contains curve operations.
|
||||
type EllipticCurve interface {
|
||||
|
|
|
|||
Loading…
Reference in a new issue