]> git.bitcoin.ninja Git - rust-lightning/commit
Add an implementation of mutual message exchange 2024-01-mutual-message-exchange
authorMatt Corallo <git@bluematt.me>
Mon, 15 Jan 2024 04:20:55 +0000 (04:20 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 2 Oct 2024 19:17:18 +0000 (19:17 +0000)
commitfbf88f175c654b5951e5362e47001ce0c60c79c8
tree5ddb15ded267137c8bec0ea40b479bf20f9a2cfe
parent563c01754d39c459b5b03c6e057eef94f0cb0619
Add an implementation of mutual message exchange

This adds a new crate, `mutual-message-exchange` which allows two
parties to maintain a list of keys with which they want to exchange
messages and exchange one message at the cost of an extra
half-round-trip.

This is anticipated for use in BOLT12, where extra data can be
included in a BOLT12 `Invoice` which allows a mutually-trusting
sender to include a message in the onion, while any
non-mutually-trusting entities will not learn anything about the
recipient (subject to the use of blinded paths).

A full write-up of this protocol is available as
[bLIP 31](https://github.com/lightning/blips/pull/31).
Cargo.toml
ci/ci-tests.sh
mutual-message-exchange/Cargo.toml [new file with mode: 0644]
mutual-message-exchange/src/chacha20.rs [new symlink]
mutual-message-exchange/src/chacha20poly1305rfc.rs [new symlink]
mutual-message-exchange/src/lib.rs [new file with mode: 0644]
mutual-message-exchange/src/poly1305.rs [new symlink]