lightningnetwork / lightning-onion

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

Obfuscator Serialization #17

Closed cfromknecht closed 6 years ago

cfromknecht commented 6 years ago

Adds simple Encode/Decode functionality to the OnionErrorEncrypter. This is intended to be a temporary solution for being able to persist the onion error encrypters until the batched processing changes have been fully integrated. In the future, we will provide support for writing the entire onion blob to disk and then reprocess the onion packet to retrieve the error encrypter.