
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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
The npm package eval-engine-sdk receives a total of 0 weekly downloads. As such, eval-engine-sdk popularity was classified as not popular.
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.