Multi-frame sphinx onion format



Summary:

In a discussion related to the Lightning Network protocol, ZmnSCPxj proposed a new way to encode the realm 0 byte by creating a special type "0" with a fixed length of 1299 bytes. This would eliminate the overhead of the realm byte and define the next 1299 bytes as the "V". The "V" would consist of 64 bytes of the current hop format, along with 19*65 bytes as the encrypted form of the next hop data. However, another participant in the discussion disagreed with the proposal, stating that it would blur the separation of payload encoding and onion encoding. Instead, they suggested dropping the concept of 65-byte "frames" and using a special length-not-encoded type 255 to declare the HMAC and the rest of the onion packet as the data for the next hop. Regardless, the proposal was not taken seriously.


Updated on: 2023-06-02T17:39:58.075224+00:00