toip.tools

interface · Browser and Node

MembershipInputsOptions

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

Declaration

TypeScriptinterface
interface MembershipInputsOptions {
  secret: Field;
  /** The statement's group slots, in order. Each tree must be the group's tree at the root you prove against. */
  groups: { group: string | Field; tree: GroupTree }[];
  /** The leaf's other fields, as the issuer recorded them. Default: a plain leaf. */
  leaf?: Omit<Leaf, "commitment">;
  scope: Field;
  signal: Field;
  today: number;
  registeredBy?: number;
  schemaId?: Field;
  predicates?: Predicate[];
  limit?: number;
  messageIndex?: number;
}

Properties

secretrequired
bigint
groupsrequired
{ group: string | Field; tree: GroupTree; }[]

The statement's group slots, in order. Each tree must be the group's tree at the root you prove against.

leafoptional
Omit<Leaf, "commitment"> | undefined

The leaf's other fields, as the issuer recorded them. Default: a plain leaf.

scoperequired
bigint
signalrequired
bigint
todayrequired
number
registeredByoptional
number | undefined
schemaIdoptional
bigint | undefined
predicatesoptional
Predicate[] | undefined
limitoptional
number | undefined
messageIndexoptional
number | undefined