rust-lightning/lightning/src
Valentine Wallace ee805e97ff
Enable simultaneous deserialization+decryption of a ChaChaPoly stream
In the upcoming onion messages PR, this will allow us to avoid decrypting onion
message encrypted data in an intermediate Vec before decoding it. Instead we
decrypt and decode it at the same time using this new ChaChaPolyReadAdapter object.

In doing so, we need to adapt the decode_tlv_stream macro such that it will
decode a LengthReadableArgs, which is a new trait as well. This trait is
necessary because ChaChaPoly needs to know the total length ahead of time to
separate out the tag at the end.
2022-06-21 17:08:28 -04:00
..
chain Merge pull request #1434 from TheBlueMatt/2022-04-robust-payment-claims 2022-05-30 10:05:01 -07:00
ln onion_utils: add next_hop_packet_pubkey method 2022-06-17 18:36:10 -04:00
routing Move network_graph.rs to gossip.rs 2022-06-02 15:15:30 -07:00
util Enable simultaneous deserialization+decryption of a ChaChaPoly stream 2022-06-21 17:08:28 -04:00
debug_sync.rs Create a simple FairRwLock to avoid readers starving writers 2022-05-10 23:40:20 +00:00
lib.rs Re-export core2::io or std::io depending on feature flags 2022-05-31 00:17:40 +00:00
sync.rs Create a simple FairRwLock to avoid readers starving writers 2022-05-10 23:40:20 +00:00