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.
[ ] create a common interface to encode message
[ ] create a common interface to decode message
[ ] create interface to encode/decode a kind 0 (metadata)
[ ] create interface to encode/decode a kind 1 (text_note)
[ ] create interface to encode/decode a kind 2 (recommend message)
[ ] update handle_cast/2 callback in nostr_client_router module
% 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
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 callednostrlib_encoder
.handle_cast/2
callback innostr_client_router
modulesee https://github.com/nostr-protocol/nips/blob/master/01.md