
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
resty.eddsa
Advanced tools
This module provides FFI interface to create signatures using EdDSA Ed25519 algorithm. It uses openssl to do the signing. Openresty's ngx_http_lua_ffi_decode_base64 function is used for decoding private key from base64.
Copy file lib/resty/signEd25519.lua to the resty folder under lualib, e.g. /usr/local/openresty/site/lualib/resty.
Use in your code like this:
local eddsa = require("resty.eddsa")
-- private key in base64
local keyInBase64 = "123456789+abcdefghijklmnopqrstuvwxyz+123450="
eddsa.signEd25519(keyInBase64, "message to sign")
NB! The key should be in RAW format, so e.g. if you have a PEM file (you can generate one using command openssl genpkey -algorithm ed25519 -outform PEM -out private_key.pem), you would need to do something like this:
$ openssl pkey -in private_key.pem -noout -text | sed 1,2d | tr -d '\n\r :' | xxd -r -p | base64
Install from NPM:
npm i resty.eddsa
Then use from TS like this:
import {signEd25519} from "resty.eddsa"
signEd25519(privateKeyInBase64, "message to sign");
FAQs
EdDSA in Openresty
The npm package resty.eddsa receives a total of 0 weekly downloads. As such, resty.eddsa popularity was classified as not popular.
We found that resty.eddsa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.