
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
elliptic-sdk
Advanced tools
Install the SDK using npm:
npm install elliptic-sdk --save
Usage of the SDK requires your Elliptic API keys, which would be insecure to embed in a browser application. For this reason, we do not advise calling our API from browser applications.
The SDK provides an instance of the popular Axios HTTP client, adding the necessary steps to authenticate each request using your Elliptic API key and secret.
const { AML } = require("elliptic-sdk");
// `client` is an instance of axios
const { client } = new AML({
key: "YOUR_ELLIPTIC_API_KEY",
secret: "YOUR_ELLIPTIC_API_SECRET",
});
client.get("/v2/analyses").then((res) => console.log(res.data));
Elliptic signs the webhook events it sends to your endpoint, allowing
you to validate that they were not sent by a third-party. You can use
the WebhookRequestVerifier class to verify the signature of a webhook
request:
const express = require("express");
const bodyParser = require("body-parser");
const { WebhookRequestVerifier } = require("elliptic-sdk");
const port = 1337;
const verifier = new WebhookRequestVerifier({
trustedPublicKey: "<This can be found from Elliptic's docs>",
expectedEndpointId:
"<This will be provided when your webhook integration is set up by Elliptic>",
});
const app = express();
const rawBodyMiddleware = bodyParser.raw({ type: () => true });
app.post("/", rawBodyMiddleware, (req, res) => {
try {
verifier.verify({
reqBody: req.body,
webhookIdHeader: req.headers["webhook-id"],
webhookTimestampHeader: req.headers["webhook-timestamp"],
webhookSignatureHeader: req.headers["webhook-signature"],
});
// Verification succeeded
res.status(200);
res.send("OK");
} catch (err) {
// Verification failed
console.error(err.message);
res.status(401);
res.send("Unauthorized");
}
});
app.listen(port, () => {
console.log(`Server is running on port ${port}`);
});
Documentation for Elliptic APIs can be found at the Elliptic Developer Center
This SDK is distributed under the Apache License, Version 2.0, see LICENSE and NOTICE for more information.
FAQs
## Installation
The npm package elliptic-sdk receives a total of 25,160 weekly downloads. As such, elliptic-sdk popularity was classified as popular.
We found that elliptic-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.