toip.tools

interface · Browser and Node

Leaf

What the issuer puts in the tree for one member.

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

Declaration

TypeScriptinterface
interface Leaf {
  commitment: Field;
  /** The attribute layout. 0 when the group has no attributes. */
  schemaId: Field;
  /** Last day (days since 1970-01-01 UTC) the membership is valid. */
  validUntilDay: number;
  /** Day the member was registered. */
  registeredDay: number;
  attrs: [Field, Field, Field, Field];
}

Properties

commitmentrequired
bigint
schemaIdrequired
bigint

The attribute layout. 0 when the group has no attributes.

validUntilDayrequired
number

Last day (days since 1970-01-01 UTC) the membership is valid.

registeredDayrequired
number

Day the member was registered.

attrsrequired
[bigint, bigint, bigint, bigint]