Global Feed Post Login
Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

i just actually looked at nip-06 and bip-39 and this shit is not fit for nostr keys

bip-39 prescribes an ordered list of 2048 words, and 2048 is 2^11 so each word can represent 11 bits

24x11=264 so 24 words can be a complete nostr secret key of 256 bits plus 8 bits of check just to make sure you don't bugger it up, last word is 3 bits of the key and 8 bits of the check, but whatever, fuck it, not the same as the check in bip-39 however idgaf

i'll adapt this word list and write a little ditty that turns your nsec into 24 words and you will be happy

Avatar
Tom 1y ago

You’re doing god’s work !!

Reply to this note

Please Login to reply.

Discussion

Avatar
ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ 1y ago

yeah, i have to write a custom base calculation algorithm for this because bip-39 mangles the data between encoding and decoding

just tried it in the last hour, nsec in, not nsec out

Thread collapsed