What is Nostr?
jb55 / Will
npub1xts…kk5s
2025-04-28 17:57:25
in reply to nevent1q…nxnf

jb55 on Nostr: as I write it up I'm leaning toward this (pns = private note storage): // device_key ...

as I write it up I'm leaning toward this (pns = private note storage):

// device_key is users nsec or device nsec
pns_key = hkdf(device_key, "nipXX")
pns_nip44_key = hkdf(pns_key, "nip44-v2")
ctext = nip44_encrypt(pns_nip44_key, nonce, note_json)
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s