PaymentOnionCodecs

class Object
trait Matchable
class Any

Value members

Concrete fields

The 1.1 BOLT spec changed the payment onion frame format to use variable-length per-hop payloads. The first bytes contain a varint encoding the length of the payload data (not including the trailing mac). That varint is considered to be part of the payload, so the payload length includes the number of bytes used by the varint prefix.

The 1.1 BOLT spec changed the payment onion frame format to use variable-length per-hop payloads. The first bytes contain a varint encoding the length of the payload data (not including the trailing mac). That varint is considered to be part of the payload, so the payload length includes the number of bytes used by the varint prefix.

Source:
PaymentOnion.scala