Replying to Avatar Sirius

Here's my "path" API that I'm using for it. I'll try to make the API a little better tomorrow and add it to iris-lib, or PR to nostr-tools if #[5] wants it.

I'll change the API to simpler path.authors(array | string).get(key) and .set(key, value)

Avatar
Sirius 2y ago

link https://github.com/irislib/iris-messenger/blob/master/src/js/lib/nostr-tools/path.ts

Reply to this note

Please Login to reply.

Discussion

Avatar
Sirius 2y ago

Oh, and I'll make encrypted paths use hash(path + secret) so it's deterministic, instead of encrypt(path) which has a random component

Thread collapsed