The encryption part seems to work, if I decrypt it the message with OpenSSL.
I think it can help you for some key parts not well explained in OpenSSL documentation.
@andros reading your spec I wrote a few notes here: https://github.com/eapl-gemugami/twtxt-direct-message-php/blob/main/direct_message_spec.md
@arne I haven't check your repo yet, although you are using sodium, right?
current progress If I keep the "nonce", I can decrypt a message with the shared key, like in the direct message specs.
I am so sorry Maggie Forest, but I won't be voting for you for the Ryan electorate. I will continue to vote for and support Elizabeth Watson-Brown a voice for the people of Ryan who actually gets things done!