Global Feed Post Login
Replying to Avatar jimbocoin šŸƒ

Thank you! Yeah, I’m working on an app, and need to pick a kind number.

My algo is:

1. concatenate the project name and purpose as a string.

2. SHA256 hash the name-purpose

3. Take the first 4 bytes as int 32.

4. Modulo this number and add basis for specific kind range.

So for example, if you need a parameterized replaceable event, you mod 10000 and add 10000.

Has anyone already written guidance of this sort for picking kind numbers for app purposes?

Avatar
Laeserin 1y ago

Here's the wiki page with two json registers

https://wikistr.com/nostr-event-register*fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1

Reply to this note

Please Login to reply.

Discussion

No replies yet.