-
Notifications
You must be signed in to change notification settings - Fork 3
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
Nostr relay #282
Nostr relay #282
Conversation
} | ||
|
||
let local_public_key = identity_store.get_key_pair().await?.get_libp2p_keys()?; | ||
let keys = identity_store.get_or_create_key_pair().await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what key is it? SecP or Rsa? Maybe better name for this varuable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
secP in this case - in new code, I used key
, private_key
and public_key
for our "main" keys (secp) and if it's rsa, I tried to call them rsa_keys
, rsa_public_key
etc. as a convention.
This would be consistent with that, but we'd have to change it once across the whole codebase to be really clean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! πͺ
} | ||
|
||
let local_public_key = identity_store.get_key_pair().await?.get_libp2p_keys()?; | ||
let keys = identity_store.get_or_create_key_pair().await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
secP in this case - in new code, I used key
, private_key
and public_key
for our "main" keys (secp) and if it's rsa, I tried to call them rsa_keys
, rsa_public_key
etc. as a convention.
This would be consistent with that, but we'd have to change it once across the whole codebase to be really clean.
π Description
Enables the notification service via Nostr. As this is breaking until we have a dev relay I keep it as a draft PR.
Relates to #119 #244
β Checklist
Please ensure the following tasks are completed before requesting a review:
cargo fmt
.π Changes Made
New Features:
Other Changes:
π‘ How to Test
Please provide clear instructions on how reviewers can test your changes:
π€ Related Issues
List any related issues, pull requests, or discussions:
π Additional Context (optional)
Until we have a dev relay this will break clients that have no access to a relay
π Review Guidelines