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

nip22 helper function to extract parent and root data #677

Open
dluvian opened this issue Dec 12, 2024 · 0 comments
Open

nip22 helper function to extract parent and root data #677

dluvian opened this issue Dec 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dluvian
Copy link
Contributor

dluvian commented Dec 12, 2024

Describe the enhancement

The nip65 module has a helper function to extract the relay list. I was hoping it was possible to do that for nip22 as well. Maybe two functions like nip22::extract_parent_data and nip22::extract_root_data which will return the k tag value, a|e|i|A|E|I tag value, relay/web page hint, and pubkey hint.

Use case

Implementing this every time is tedious. It would be nice if the library would provide this functionality.

Additional context

https://github.com/nostr-protocol/nips/blob/master/22.md#comment

@dluvian dluvian added the enhancement New feature or request label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant