-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feature request: please integrate NIP04 (encrypted message) #15
Comments
Ok I will take a look at this |
Initial work: #25 WIP: 385f211 @no-prob I reworked your contribution to make it more compatible with the actual usage of the library, could you take a look at the changes ? @ryzizub Yo! Could you take a look to the contribution and the rework behind ? If you also have some NIP4 Event that you could provide as test vectors with the correct pubkey/privkey To finish the job we really need to cover these unit tests cases:
|
For unit tests it makes sense to hard-code keys and iv so that the expected cipher text can be compared with known values.
I suppose the usage model for receive side is if kind=4 then cast the |
rename/reorganize -> 75a9731 I tried to make it as clean and readable:
@no-prob remaining work for us before PR into
|
@no-prob
We only need test case for these line shown in red: https://app.codecov.io/gh/ethicnology/dart-nostr/blob/develop/lib/src/nips/nip_004.dart |
@no-prob Do you still want to do these tasks? |
Hi, I won't be making new PR's until I get the app that depends on this library stable. Thanks |
@no-prob I feel you, I'm working/maintaining this project but i have no apps that depends on it. I will wait for @ryzizub review to finish the PR. |
@ethicnology I can look into it next week |
FWIW there are problems with NIP-04 and as such it is not recommended. There are ongoing efforts to supersede with a more secure specification for private messaging. See nostr-protocol/nips#107 |
Yeah, we will want to implement the better messaging NIPs. NIP 4 is just to get started. |
Marked as deprecated in 44fd3f2 to warns users about controversial discussions regarding this NIP. |
I would have chosen to mark it deprecated when there is a working NIP to replace it but not before that. |
I decided to mark it deprecated so that users of the library are aware of the discussions for the future replacement of this feature, but they can still use it until the "unspecified next release". |
merged in #30 |
This is a request to add NIP04 decoder to the library
Following implementation works with this library: https://github.com/galets/nostr_message_fetch/blob/master/lib/nip04.dart
I'm consenting for you to re-license the code to LGPL-3.0
The text was updated successfully, but these errors were encountered: