toip.tools

function · Browser and Node

enroll

Member side: sends the commitment for groupId and checks the leaf the issuer recorded.

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

Declaration

TypeScriptSignature
enroll(endpoint: Endpoint, issuerDid: string, groupId: string, secret: Field, extra?: {
    credential?: unknown;
    replace?: boolean;
}): Promise<Enrollment>;

Parameters

endpointrequired
Endpoint
issuerDidrequired
string
groupIdrequired
string
secretrequired
bigint
extraoptional
{ credential?: unknown; replace?: boolean; }

Default: {}

Returns

Promise<Enrollment>