How can I derive Note Id from the Event Id?
Discussion
I think it's the same thing.
I thought so too, but if I take the raw event data, check id, it doesn't match the note id...
I'll bet that's a "client" thing.
#[2], can you help us out here?
for example here the raw event of your note:
{
"content": "I think it's the same thing.",
"created_at": 1679114061,
"id": "58b03b7ed51cc439b6fc294ad7988bd6fc8c970ad12573b193333870cfb8b3e5",
"kind": 1,
"pubkey":
...
}
And heres the note id:
note1tzcrklk4rnzrndhu999d0xyt6m7ge9c26yjh8vvnxvu8pnack0js6n450m
the note1... is the bech32 enchoding of the the id. https://github.com/nostr-protocol/nips/blob/master/19.md
Thanks fam! But I need to go the other way around. From hex to bech32
Ah sorry bud. Misunderstood that. Let me know if you find out how!
🤙👊🍻

#[7] wrote an app to convert hex to bech32 🤙👊🍻
I really should not be using a client without spell check
Makes sense! Is there a converter I can use to derive bech32 from hex?
Can use https://github.com/0xtrr/nostr-tool. I thought you could use damus.io/key but doesnt seem to be working at the moment might be only for keys not ids, not sure. Im sure there is another web one somehere but none i can name.
Yep I did a quick search for an online converter... Will look some more, thanks for your help fam!
Can you post it? I bet one is the hex and one is the bech32
Try this…
Copy the note ID
Go to https://nostr.band and paste the note ID into the search bar
Find the note, and click the comment bubble icon
It should put the note ID in hex format into the search bar
You can use assorted libraries to convert betweenhex representation that gets included in events and bech32 representation which is more for user friendliness.
This is part of nip19
Press and hold on Amethyst

Nostr tools: https://nostrdebug.com/converter
