문제

Is there a curve25519 implementation for javascript available?

It needs to be able to both sign and verify. Only thing I've found just signs.

도움이 되었습니까?

해결책

Curve25519 implements Diffie-Hellman key exchange; it doesn't sign or verify anything, it only generates a shared key via scalar multiplication. If you're looking for signatures, use Ed25519, which is an implementation of Schnorr signature algorithm on the same elliptic curve.

Here are links to some JavaScript implementations of both Curve25519 and Ed25519:

다른 팁

You can use this (https://github.com/rev22/curve255js) implementation

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top