rust-lightning/lightning
Matt Corallo e6aaf7c72d Pull secp256k1 contexts from per-peer to per-PeerManager
Instead of including a `Secp256k1` context per
`PeerChannelEncryptor`, which is relatively expensive memory-wise
and nontrivial CPU-wise to construct, we should keep one for all
peers and simply reuse it.

This is relatively trivial so we do so in this commit.

Since its trivial to do so, we also take this opportunity to
randomize the new PeerManager context.
2022-05-11 20:02:29 +00:00
..
src Pull secp256k1 contexts from per-peer to per-PeerManager 2022-05-11 20:02:29 +00:00
Cargo.toml bitcoin crate 0.28.1 2022-05-05 18:04:42 +02:00