RouteBlindingEncryptedDataCodecs
- Source:
- RouteBlinding.scala
Value members
Concrete methods
def decode[T <: Data](nodePrivKey: PrivateKey, blindingKey: PublicKey, encryptedData: ByteVector, encryptedDataCodec: Codec[T]): Try[(T, PublicKey)]
Decrypt and decode the contents of an encrypted_recipient_data TLV field.
Decrypt and decode the contents of an encrypted_recipient_data TLV field.
- Value parameters:
- blindingKey
blinding point (usually provided in the lightning message).
- encryptedData
encrypted route blinding data (usually provided inside an onion).
- encryptedDataCodec
codec to parse the decrypted data.
- nodePrivKey
this node's private key.
- Returns:
decrypted contents of the encrypted recipient data, which usually contain information about the next node, and the blinding point that should be sent to the next node.
- Source:
- RouteBlinding.scala