mirror of
https://github.com/muun/recovery.git
synced 2025-11-11 14:30:19 -05:00
Release v0.3.0
This commit is contained in:
27
vendor/github.com/lightningnetwork/lightning-onion/error.go
generated
vendored
Normal file
27
vendor/github.com/lightningnetwork/lightning-onion/error.go
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
package sphinx
|
||||
|
||||
import "fmt"
|
||||
|
||||
var (
|
||||
// ErrReplayedPacket is an error returned when a packet is rejected
|
||||
// during processing due to being an attempted replay or probing
|
||||
// attempt.
|
||||
ErrReplayedPacket = fmt.Errorf("sphinx packet replay attempted")
|
||||
|
||||
// ErrInvalidOnionVersion is returned during decoding of the onion
|
||||
// packet, when the received packet has an unknown version byte.
|
||||
ErrInvalidOnionVersion = fmt.Errorf("invalid onion packet version")
|
||||
|
||||
// ErrInvalidOnionHMAC is returned during onion parsing process, when received
|
||||
// mac does not corresponds to the generated one.
|
||||
ErrInvalidOnionHMAC = fmt.Errorf("invalid mismatched mac")
|
||||
|
||||
// ErrInvalidOnionKey is returned during onion parsing process, when
|
||||
// onion key is invalid.
|
||||
ErrInvalidOnionKey = fmt.Errorf("invalid onion key: pubkey isn't on " +
|
||||
"secp256k1 curve")
|
||||
|
||||
// ErrLogEntryNotFound is an error returned when a packet lookup in a replay
|
||||
// log fails because it is missing.
|
||||
ErrLogEntryNotFound = fmt.Errorf("sphinx packet is not in log")
|
||||
)
|
||||
Reference in New Issue
Block a user