-
Notifications
You must be signed in to change notification settings - Fork 288
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
Enable Private Relays [500,000 sats] NIP-42 #940
Comments
We'll offer a 500k sats bounty per client for this feature. |
Is there a private relay where we can test out the implementation? |
Yes! You can use wss://filter.nostr.wine or wss://nostr.kollider.xyz |
Any takers? |
I’ll do this soon |
Thanks Will! Much appreciated. |
Go for it @fishcharlie |
Awesome. I'll start looking into this this evening and hopefully will have something sometime this week to show. |
it looks pretty good! I just need a way to test it. |
If you're looking for relays, here are two different AUTH flows: wss://filter.nostr.wine - AUTH on connect, only allows paid pubkeys are accepted |
@fishcharlie maybe we could have some tests for these relays? |
@jb55 Open to that idea. My question would be does Damus have any tests currently that depend on 3rd party relays? Not saying that @nostr-wine won't survive for a long time to come. But that is a pretty major dependency that we'd be introducing to the Damus test suite. It might be better to just mock the requests and replies. But I'm open to creating a connection to those relays if you want. |
For the time being I'm currently working on writing a test that verifies that based on the objects that the correct message is generated. Similar to RequestTests.swift testMakeUnsubscribeRequest (but for the auth). |
On Thu, Dec 21, 2023 at 06:05:17PM -0800, Charlie Fish wrote:
@jb55 Open to that idea. My question would be does Damus have any tests
currently that depend on 3rd party relays? Not saying that @nostr-wine
won't survive for a long time to come. But that is a pretty major
dependency that we'd be introducing to the Damus test suite.
I'm not against network tests. we had one for nostrscript at one point
They tend to be flaky, but it would be nice to see it working against a
non-mocked target for the first release.
|
@jb55 Sounds good. I'll work on that and let you know when I have an update. |
@jb55 Added some tests: https://groups.google.com/a/damus.io/g/patches/c/Zx3dk01e0yg. Also added NIP-42 to the README since I forgot to do that originally. Let me know what you think 😃 |
Lightning Invoice: lnbc1pjcpaakpp5gjs4f626hf8w6slx84xz3wwhlf309z503rjutckdxv6wwg5ldavsdqqcqzpgxqrrs0fppqjaxxw43p7em4g59vedv7pzl76kt0qyjfsp5qcp9de7a7t8h6zs5mcssfaqp4exrnkehqtg2hf0ary3z5cjnasvs9qyyssq55523e4h3cazhkv7f8jqf5qp0n8spykls49crsu5t3m636u3yj4qdqjkdl2nxf6jet5t2r2pfrxmm8rjpqjd3ylrzqq89m4gqt5l6ycqf92c7h Closes: #940 Signed-off-by: Charlie Fish <contact@charlie.fish> Signed-off-by: William Casarin <jb55@jb55.com>
Lightning-Invoice: lnbc1pjcpaakpp5gjs4f626hf8w6slx84xz3wwhlf309z503rjutckdxv6wwg5ldavsdqqcqzpgxqrrs0fppqjaxxw43p7em4g59vedv7pzl76kt0qyjfsp5qcp9de7a7t8h6zs5mcssfaqp4exrnkehqtg2hf0ary3z5cjnasvs9qyyssq55523e4h3cazhkv7f8jqf5qp0n8spykls49crsu5t3m636u3yj4qdqjkdl2nxf6jet5t2r2pfrxmm8rjpqjd3ylrzqq89m4gqt5l6ycqf92c7h Closes: #940 Signed-off-by: Charlie Fish <contact@charlie.fish> Signed-off-by: William Casarin <jb55@jb55.com> Changelog-Added: Add NIP-42 relay auth support
bounties can be paid to: fishcharlie@strike.me |
Paid! Awesome work @fishcharlie, thanks for merging @jb55. |
Thank you @nostr-wine! 🎉 |
User Story
As a Damus user who wants to connect with a particular group of nostriches privately, I want to be able to connect to a private relay, so that I can read and share notes only with a specific group of nostriches.
Acceptance Criteria
implementation details
NIP-42
relates to
#453
Origin: https://damus.io/note1c6khgk6phxzhq7hh2v32nhzrvlyn4y2ctk6h0kgtgfrgrh7y7e5qma8ykl
The text was updated successfully, but these errors were encountered: