lightningnetwork / lightning-onion

Onion Routed Micropayments for the Lightning Network
MIT License
398 stars 127 forks source link

Implement error message wraping/encryption and decryption #4

Closed Roasbeef closed 7 years ago

Roasbeef commented 7 years ago

Issue

Within the network, it's important that when an HTLC forwarding failure occurs, the recipient is notified in a timely manner in order to ensure that errors are graceful and not unknown. However, we also want to ensure the privacy of the onion routing scheme, meaning that the intermediate hops don't know the exact location of the initiating sender. Therefore, nodes need to use the existing circuit to report the error with a message traveling backwards from the point of error to the original sender.

Within the current spec draft the handling of the scenario described above is detailed in sufficiently in the returning messages section.

This error wrapping and decryption at the sender is currently unimplemented.

Steps to Completion

Roasbeef commented 7 years ago

Closed by #8.