function · Browser and Node
enroll
Member side: sends the commitment for groupId and checks the leaf the issuer recorded.
@toip-tools/anon-membershipView sourceimport { enroll } from "@toip-tools/anon-membership";
Declaration
enroll(endpoint: Endpoint, issuerDid: string, groupId: string, secret: Field, extra?: {
credential?: unknown;
replace?: boolean;
}): Promise<Enrollment>;
Parameters
endpointrequiredEndpointissuerDidrequiredstringgroupIdrequiredstringsecretrequiredbigintextraoptional{ credential?: unknown; replace?: boolean; }Default:
{}
Returns
Promise<Enrollment>