toip.tools

interface · Browser and Node

Crs

Setup data for proving and verifying: uncompressed BN254 G1 points (64 bytes each) and the G2 point.

@toip-tools/anon-membershipView source
TypeScriptImport
import { type Crs } from "@toip-tools/anon-membership";

Declaration

TypeScriptinterface
interface Crs {
  points: number;
  g1: Uint8Array;
  g2: Uint8Array;
}

Properties

pointsrequired
number
g1required
Uint8Array<ArrayBufferLike>
g2required
Uint8Array<ArrayBufferLike>