brugeman on Nostr: NWC wallets don't have static IPs and are behind firewalls too. Clients send ...
NWC wallets don't have static IPs and are behind firewalls too. Clients send ephemeral events as requests to wallet pubkey on some relay, wallet subscribes to requests and replies in a similar way tagging the client pubkey.
Same way wallet could talk to a mint doing RPC using ephemeral events.
NWS is doing similar thing but with a much more complex setup - enter/exit nodes socks5 etc, and the payload is arbitrary binary data, wheres mint RPC would be much simpler and more structured - wallet just connects to a relay and writes/reads some encrypted events.
Published at
2024-08-29 11:30:31Event JSON
{
"id": "56883407bb251f069faebb2bdda9552d6dc412f5e230cce9a3af9f075965c8a3",
"pubkey": "3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd",
"created_at": 1724931031,
"kind": 1,
"tags": [
[
"e",
"8581a9c80f29f1be4f31d8a34816133712b68a24346980107fe1a336798168bf",
"",
"root"
],
[
"e",
"11099ab0bf838bba0e897379973ee1b972f69b0ffdfedeb3c882b834606c1bc0",
"wss://relay.nostr.band/",
"reply"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63",
"",
"mention"
],
[
"p",
"76c71aae3a491f1d9eec47cba17e229cda4113a0bbb6e6ae1776d7643e29cafa",
"",
"mention"
],
[
"p",
"d700fc10d457eeae4f02eb04d715a054837e68a2e2d010971382c5e1016dc99e",
"",
"mention"
]
],
"content": "NWC wallets don't have static IPs and are behind firewalls too. Clients send ephemeral events as requests to wallet pubkey on some relay, wallet subscribes to requests and replies in a similar way tagging the client pubkey.\n\nSame way wallet could talk to a mint doing RPC using ephemeral events.\n\nNWS is doing similar thing but with a much more complex setup - enter/exit nodes socks5 etc, and the payload is arbitrary binary data, wheres mint RPC would be much simpler and more structured - wallet just connects to a relay and writes/reads some encrypted events. ",
"sig": "5a1d6b9a6fa818a3ed2a433090238111c086570f895673f70f4ea42b0d9fae7a71a058760bf3d48cc9bd48ff93114bf19be1b32e6c80d9dbadaa21c7be67aadb"
}