Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@veria/sdk

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@veria/sdk

VERIA TypeScript SDK — Solana-native ZK Coprocessor. Few dots. Whole truth.

latest
Source
npmnpm
Version
0.1.6
Version published
Maintainers
1
Created
Source

@veria/sdk

TypeScript SDK for VERIA — Solana-native ZK Coprocessor.

Few dots. Whole truth.

Install

npm install @veria/sdk @solana/web3.js

Quick start

import { VeriaClient, VeriaVerifier } from '@veria/sdk';
import { Connection, Keypair } from '@solana/web3.js';

const client = new VeriaClient({
  apiUrl: 'https://api.veria.fun',
  programId: process.env.VERIA_PROGRAM_ID!,
});

// Submit a folded proof job
const fold = await client.fold({
  circuit: 'scoring',
  input: { scores: [80, 90, 70], weights: [1, 2, 1], count: 3 },
  subProofCount: 100,
});

console.log(`Cost: ${fold.costSol} SOL  Savings: ${fold.savingsPct.toFixed(2)}%`);

// Verify on Solana mainnet
const verifier = new VeriaVerifier({
  connection: new Connection('https://api.mainnet-beta.solana.com'),
  programId: process.env.VERIA_PROGRAM_ID!,
});

const submitter = Keypair.generate().publicKey;
const tx = verifier.buildVerifyTx({
  submitter,
  circuit: 'scoring',
  proofBytes: fold.proofBytes,
  publicInputs: fold.publicInputs,
});
// Sign & send tx with your wallet, then:
const record = await verifier.fetchRecord(
  verifier.recordPda(fold.proofBytes, fold.publicInputs),
);
console.log(record);

Circuit catalog

IDNameMax inputTests
1Scoring645
2Aggregation40964
3Median2565
4Sort2564
5ML Inference324

Modules

  • VeriaClient — HTTP client for the Compute API (/fold, /verify).
  • VeriaVerifier — Anchor verifier program instruction builder + PDA derivation + account fetch.
  • CIRCUITS — circuit registry (numeric id, schema, test count).
  • proofHash, publicInputsHash — SHA-256 helpers matching the on-chain program.

Cost model

const c = new VeriaClient();
console.log(c.computeCost(100));
// {
//   subProofs: 100,
//   directTotalSol: 0.5,
//   foldedSol: 0.0001,
//   savingsPct: 99.98
// }

License

Apache-2.0.

Keywords

solana

FAQs

Package last updated on 03 Jun 2026

Did you know?

Socket

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.

Install

Related posts