For now? I'm experimenting on an old concept.
1

Configure Feed

Select the types of activity you want to include in your feed.

docs: Add commentary to async crypto ffi module

This is actually part of a bigger change I'll introduce later, adding
functions to convert an ed25519 to a x25519, allowing for private data
transfer between individual users, hopefully.


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

MLC Bloeiman (Jul 14, 2026, 10:51 AM +0200) 5cec38b6 af5c538b

+8 -1
+8 -1
lumina/backend/src/lumina_server/lumina_async_crypto_ffi.erl
··· 1 + %% **Lumina > Backend > Erlang Native Implementations >** 2 + %% # Asynchronous cryptography 3 + %% 4 + 1 5 -module(lumina_async_crypto_ffi). 2 - -export([generate_keypair/0, sign/2, verify/3]). 6 + -export([generate_keypair/0, sign/2, verify/3, ed25519_to_x25519_public/1, compute_x25519_shared_secret/2]). 3 7 8 + %% Generates an ed25519 keypair, used for the identification and signing of a Lumina user! 4 9 generate_keypair() -> 5 10 crypto:generate_key(eddsa, ed25519). 6 11 12 + %% Sign a message using ed25519. 7 13 sign(Message, PrivateKey) -> 8 14 crypto:sign(eddsa, none, Message, [PrivateKey, ed25519]). 9 15 16 + %% Verify a signature on a ed25519 signed message. 10 17 verify(Message, Signature, PublicKey) -> 11 18 crypto:verify(eddsa, none, Message, Signature, [PublicKey, ed25519]).