import { RaijinLabsLucidAiCore } from "raijin-labs-lucid-ai/core.js";
import { zkMLLucidGenerateZkmlProof } from "raijin-labs-lucid-ai/funcs/zkMLLucidGenerateZkmlProof.js";
// Use `RaijinLabsLucidAiCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const raijinLabsLucidAi = new RaijinLabsLucidAiCore();
async function run() {
const res = await zkMLLucidGenerateZkmlProof(raijinLabsLucidAi, {
modelId: "<id>",
inputHash: "<value>",
outputHash: "<value>",
policyHash: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("zkMLLucidGenerateZkmlProof failed:", res.error);
}
}
run();