
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
eval-engine-sdk
Advanced tools
A JavaScript SDK for interacting with Eval Engine, a transparent evaluation system built on Chromia blockchain.
Eval Engine is a system that provides transparent evaluation services using Chromia blockchain as its database layer. It operates with three main parties:
npm install eval-engine-sdk
The main client used by end users to interact with the Eval Engine. It requires a Chromia private key for initialization.
View examples/user_demo.ts for full implementation
import { EvalClient, CHROMIA_CHAIN } from 'eval-engine-sdk';
const evalClient = await EvalClient.init(
PRIVATE_KEY,
CHROMIA_CHAIN.MAINNET,
{
url: "https://api.evalengine.ai/api",
prefix: "EVA",
pub: "YOUR_ENGINE_PUBLIC_KEY"
}
);
Key Methods:
getEngine()
: Retrieves engine informationsignEvaluateTweetRequest(inputTweet, outputTweet)
: Signs an evaluation requestsubmitEvaluateTweetRequest(txHash)
: Submits a signed evaluation requestTo use it, simply:
const input = "Input tweet here";
const reply = "Replied tweet here";
const txHash = await evalClient.signEvaluateTweetRequest(input, reply);
console.log("txHash", txHash);
const response = await evalClient.submitEvaluateTweetRequest(txHash);
console.log("response", JSON.stringify(response, null, 2));
This is the server implementation of Engine
View examples/engine_server_demo.ts for full implementation
import { EngineClient, CHROMIA_CHAIN } from 'eval-engine-sdk';
const engine = await EngineClient.init(ENGINE_PRIVATE_KEY, CHROMIA_CHAIN.MAINNET);
FAQs
Eval Engine SDK for JavaScript/TypeScript
We found that eval-engine-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.