Skip to content
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

Implemented NIP-17 support #449

Merged
merged 9 commits into from
Oct 25, 2024

Conversation

Anderson-Juhasc
Copy link
Contributor

Added functions wrapEvent, wrapManyEvents, unwrapEvent unwrapManyEvents and getWrappedEvents.

@fiatjaf
Copy link
Collaborator

fiatjaf commented Oct 24, 2024

shouldn't these be on nip59?

@Anderson-Juhasc
Copy link
Contributor Author

@fiatjaf well, I figured that nip59 can be used to encapsulate any type of event and the idea of ​​nip17 was thought of with a focus on Direct Message Kind 14.
What do you think? Better to move to nip59?

@fiatjaf
Copy link
Collaborator

fiatjaf commented Oct 24, 2024

I hadn't read it fully. I think this is probably fine, yes. Except for the fact that you're taking strings as the private keys, I think we should stick to Uint8Array for consistency. Can you change that? Otherwise I can change later.

@fiatjaf fiatjaf merged commit cae06fc into nbd-wtf:master Oct 25, 2024
2 checks passed
@Anderson-Juhasc Anderson-Juhasc deleted the feature/nip17-support branch October 25, 2024 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants