Package fr. acinq. lightning. crypto. sphinx
Types
Decrypted Failure Packet
Link copied to clipboard
data class DecryptedFailurePacket(originNode: PublicKey, failureMessage: FailureMessage)
Content copied to clipboard
A properly decrypted failure from a node in the route.
Decrypted Packet
Link copied to clipboard
data class DecryptedPacket(payload: ByteVector, nextPacket: OnionRoutingPacket, sharedSecret: ByteVector32)
Content copied to clipboard
Decrypting an onion packet yields a payload for the current node and the encrypted packet for the next node.
Failure Packet
Link copied to clipboard
object FailurePacket
Content copied to clipboard
An onion-encrypted failure packet from an intermediate node: +----------------+----------------------------------+-----------------+----------------------+-----+ | HMAC(32 bytes) | failure message length (2 bytes) | failure message | pad length (2 bytes) | pad | +----------------+----------------------------------+-----------------+----------------------+-----+ with failure message length + pad length = 256
Packet And Secrets
Link copied to clipboard
data class PacketAndSecrets(packet: OnionRoutingPacket, sharedSecrets: SharedSecrets)
Content copied to clipboard
Shared Secrets
Link copied to clipboard
data class SharedSecrets(perHopSecrets: List<Pair<ByteVector32, PublicKey>>)
Content copied to clipboard