You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sphinx: remove HopData from OnionHop, expose left over EOB from payload
In this commit, we remove the HopData field from the OnionHop struct as
it's no longer needed since we can obtain the HopData via the HopData()
method of the HopPayload struct. Additinoally, we also now return the
set of unused payload bytes after the HopData encoding, we call these
the EOB or extra onion blobs.
With this distinction we now provide the caller of ProcessOnionPacket
with the forwarding instructions, then the left over EOB bytes. These
EOB bytes will then be interpreted using a TLV format or any other
arbitrary framing system.
0 commit comments