htlcswitch: convert blinded failures for blinded payments

This commit is contained in:
Carla Kirk-Cohen committed 2024-04-25 09:47:13 -04:00
1 parent de9c9c028c
commit 43687181f7
2 files changed
+117 -7

No files matched your search

+6
View File
@@ -39,6 +39,12 @@ const (
EncrypterTypeRelaying = 4
)
// IsBlinded returns a boolean indicating whether the error encrypter belongs
// to a blinded route.
func (e EncrypterType) IsBlinded() bool {
return e == EncrypterTypeIntroduction || e == EncrypterTypeRelaying
}
// ErrorEncrypterExtracter defines a function signature that extracts an
// ErrorEncrypter from an sphinx OnionPacket.
type ErrorEncrypterExtracter func(*btcec.PublicKey) (ErrorEncrypter,