Looking for ed25519 code

Just starting out? Need help? Post your questions and find answers here.
Garfield
New User
New User
Posts: 8
Joined: Sun Dec 10, 2023 6:32 pm

Looking for ed25519 code

Post 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
User avatar
NicTheQuick
Addict
Addict
Posts: 1523
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Looking for ed25519 code

Post by NicTheQuick »

Why do you want to reimplement it? Just use the existing libraries that come pre-installed on the operating system.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
idle
Always Here
Always Here
Posts: 5928
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Looking for ed25519 code

Post by idle »

Garfield
New User
New User
Posts: 8
Joined: Sun Dec 10, 2023 6:32 pm

Re: Looking for ed25519 code

Post 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?
User avatar
idle
Always Here
Always Here
Posts: 5928
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Looking for ed25519 code

Post by idle »

I missed the Ed part I read it as ec25519, dyslexia does that.
Garfield
New User
New User
Posts: 8
Joined: Sun Dec 10, 2023 6:32 pm

Re: Looking for ed25519 code

Post 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.
User avatar
idle
Always Here
Always Here
Posts: 5928
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Looking for ed25519 code

Post 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.
Post Reply