erlang-punch / nostr

A pure Erlang implementation of the nostr protocol
https://github.com/erlang-punch/nostr
MIT License
16 stars 3 forks source link

Implement NIP/01: Basic Events and Kinds #3

Closed niamtokik closed 1 year ago

niamtokik commented 1 year ago

At this time of writing, NIP/01 is partially implemented but there is no clean way to encode or decode the different events and kinds. nostrlib_decoder has been created to deal with this issue but it will probably necessary to create at least another one called nostrlib_encoder.

% reference to nostrlib_encode:encode/1,2
nostrlib:encode/1
nostrlib:encode/2

% reference to nostrlib_decode:decode/1,2
nostrlib:decode/1
nostrlib:decode/2

see https://github.com/nostr-protocol/nips/blob/master/01.md