Skip to content

Commit 90e73da

Browse files
committed
Replaces local ChaCha20-Poly1305 with external crate
Migrates ChaCha20-Poly1305 encryption from the local crypto module to rust-bitcoin's `chacha20-poly1305` crate. Integrated the crate across all modules (Router, PeerStorage, Onion Utils, etc.) and removed the deprecated internal implementation. Updated test vectors to align with the new 12-byte nonce construction and ensured SCID encryption remains consistent.
1 parent ec03159 commit 90e73da

13 files changed

Lines changed: 184 additions & 1347 deletions

lightning/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ lightning-macros = { version = "0.2", path = "../lightning-macros" }
4141
bech32 = { version = "0.11.0", default-features = false }
4242
bitcoin = { version = "0.32.4", default-features = false, features = ["secp-recovery"] }
4343

44+
chacha20-poly1305 = { git = "https://github.com/rust-bitcoin/rust-bitcoin.git", rev = "cdc27ae7c7426fc0a484e3b012a6cdbe6b10e85f", default-features = false }
4445
dnssec-prover = { version = "0.6", default-features = false }
4546
hashbrown = { version = "0.13", default-features = false }
4647
possiblyrandom = { version = "0.2", path = "../possiblyrandom", default-features = false }

0 commit comments

Comments
 (0)