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

Autogenerate "id" for NIP46.Request objects #137

Open
kuiperanon opened this issue Apr 10, 2024 · 1 comment
Open

Autogenerate "id" for NIP46.Request objects #137

kuiperanon opened this issue Apr 10, 2024 · 1 comment

Comments

@kuiperanon
Copy link
Contributor

kuiperanon commented Apr 10, 2024

It would be nice if there was a way to construct a NIP46.Request object with a constructor like: new Request(method, params) and have the id randomly autogenerated.

NOTE: It seems from my testing this generated id must be a hex string, or else it won't work with nsec.app. Not sure if this is true but it seems to be the case.

@tcheeric
Copy link
Owner

tcheeric commented Apr 11, 2024 via email

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

No branches or pull requests

2 participants