@zkmpa/group
Version:
Group management for zkMPA (Zero-Knowledge Multi-Party Approval)
18 lines • 683 B
TypeScript
import { Group as SemaphoreGroup } from '@semaphore-protocol/group';
import { Group, GroupConfig, GroupState, MerkleProof } from './types';
export declare class GroupImpl implements Group {
readonly id: string;
readonly config: GroupConfig;
private semaphoreGroup;
private memberSet;
constructor(config: GroupConfig);
addMember(commitment: bigint): void;
removeMember(commitment: bigint): void;
getMerkleRoot(): bigint;
getMerkleProof(commitment: bigint): MerkleProof;
getMembers(): bigint[];
indexOf(commitment: bigint): number;
exportState(): GroupState;
getSemaphoreGroup(): SemaphoreGroup;
}
//# sourceMappingURL=group.d.ts.map