Page 1 of 1

Looking for ed25519 code

Posted: Tue Aug 20, 2024 11:21 am
by Garfield
Hi all.

I'm looking for an implementation for ed25519 sign/verify (crossplatform), but find nothing about it.

I found only for C, C#, vb6 and other languages.

Did someone adapted it without using 3rd party libs and would share it?

C#: https://github.com/CodesInChaos/Chaos.NaCl
C: https://github.com/orlp/ed25519
Javascript: https://github.com/Cyphrme/Ed25519Too
VB6: https://gist.github.com/wqweto/f7d63723 ... 27370fd4f6

Re: Looking for ed25519 code

Posted: Tue Aug 20, 2024 11:51 am
by NicTheQuick
Why do you want to reimplement it? Just use the existing libraries that come pre-installed on the operating system.

Re: Looking for ed25519 code

Posted: Wed Aug 21, 2024 5:19 am
by idle

Re: Looking for ed25519 code

Posted: Wed Aug 21, 2024 2:17 pm
by Garfield
Hi idle, thank you for pointing me to your thread.

I thought there are differences in curve and keys between ed25519 (edwards) used for sign/verify messages) and curve25519 used for message encrypt/decrypt?

Re: Looking for ed25519 code

Posted: Wed Aug 21, 2024 8:06 pm
by idle
I missed the Ed part I read it as ec25519, dyslexia does that.

Re: Looking for ed25519 code

Posted: Tue Aug 27, 2024 10:08 am
by Garfield
I found this paper for differences and converting ed points to ec points.

https://billatnapier.medium.com/the-con ... for%20ECDH

https://www.youtube.com/watch?v=rPIpiH3X138

It sounds a bit complicated for me, but maybe your code can be very usefull for it.

Re: Looking for ed25519 code

Posted: Tue Aug 27, 2024 9:58 pm
by idle
I don't have time to add it but you could use libretls 3.9.2 I'm not sure when it was added but it's only fairly recent.