-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onion messages #9039
base: master
Are you sure you want to change the base?
onion messages #9039
Conversation
693e836
to
8c707dc
Compare
2475cc9
to
62ea5d6
Compare
62ea5d6
to
0b53afa
Compare
this branch is now |
4ce8580
to
9c4bec1
Compare
d7d81e9
to
20b8bd9
Compare
652ced0
to
c38ba15
Compare
7bb7596
to
d0251c1
Compare
480777f
to
7c70ce3
Compare
9717523
to
570370a
Compare
A general note on formatting: if we use multiple lines for the parameters passed to a function, we should avoid indenting them at the level of the opening parenthesis, but use an extra line instead. Example: - blinded_path = OnionWireSerializer._read_complex_field(fd=blinded_path_fd,
- field_type='blinded_path',
- count=1)
+ blinded_path = OnionWireSerializer._read_complex_field(
+ fd=blinded_path_fd,
+ field_type='blinded_path',
+ count=1) Why? because changing the method name will trigger reindentation of all the lines in the first case, not in the second case. This results in larger diffs. See for example the commit where |
Yes I don't like it either.
Yes this is much better |
166f4b3
to
830fb32
Compare
merged. |
01f3536
to
c044bcd
Compare
ca2f52b
to
9011833
Compare
Hi, I know that I have already asked this, but could you rebase this branch on current master? It is currently based on 8f7c11f, which does not pass regtest. |
cefb47f
to
59a6675
Compare
|
59a6675
to
b71543d
Compare
…gs for test vectors
- add support for `subtype`/`subtypedata` type declarations - add new primitive type `sciddir_or_pubkey` - better assert message for cardinality errors
b71543d
to
bc6be0b
Compare
bc6be0b
to
ea3e4e5
Compare
I do not think this pull request should be merged in its current state. The class https://github.com/spesmilo/electrum/tree/onion_messages_cleanup Please use that branch for further pull requests |
This PR is ready for review.
get_blinded_path_via
to construct a blinded pathsend_onion_message
to send a textonionmsg_tlv.message
payload to a node_id or blinded pathinfo
levelOnionMessageManager
class implementing queues for rate limitingonionmsg_tlv.message
payloads, which are fire-and-forget, but eventually bolt12 will need this for e.g. 'invoice_request')subtype
declarations in wire definitionsTesting
Alice <-> Bob <-> Carol <-> Dave
using node_ids and blinded paths as destination.alice get_blinded_path_via $(bob nodeid)
carol send_onion_message <blinded path> hello
Alice <-> cln01 <-> cln02 <-> cln03 <-> Bob
bolt12
branch to issueinvoice_request
fromoffer
)known issues