[英]curve 25519 scalar multiplication library
I am porting some backend/sdk to nodejs/typescript and I came along a blocker, the source uses libsodium
function crypto_scalarmult_curve25519()
which has an equivalent in Go as well thru crypto/curve25519
( ScalarMult
).我正在将一些后端/sdk 移植到 nodejs/typescript 并且我遇到了一个阻止程序,源使用
libsodium
函数crypto_scalarmult_curve25519()
,它在 Go 中也有一个等效项,通过crypto/curve25519
( ScalarMult
)。
It's been hour since I was looking a similar version in nodejs/typescript, I even tried the javascript version of libsodium
;自从我在 nodejs/typescript 中寻找类似版本以来已经有一个小时了,我什至尝试了
libsodium
的 javascript 版本; which pointed me to libsodium-wrapper
, which unfortunately the function I am looking for ( crypto_scalarmult_curve25519
) is missing and not supported.这将我指向
libsodium-wrapper
,不幸的是我正在寻找的函数( crypto_scalarmult_curve25519
)丢失且不受支持。 crypto
library nor the node-forge
does not have curve scalar multiplication as well. crypto
库和node-forge
也没有曲线标量乘法。
Is there any alternative in javascript/typescript? javascript/typescript 中是否有其他选择?
found a very lightweight curve25519 library for typescript.为打字稿找到了一个非常轻量级的 curve25519 库。 https://github.com/harveyconnor/curve25519-js/
https://github.com/harveyconnor/curve25519-js/
by default the scalar multiplication functions is not exposed to outside user of the library, so i need to export it from the source to be used.默认情况下,标量乘法函数不会向库的外部用户公开,因此我需要从要使用的源中导出它。
answering my question for others to use.回答我的问题供其他人使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.