UNPKG

@zkmpa/group

Version:

Group management for zkMPA (Zero-Knowledge Multi-Party Approval)

13 lines 627 B
import { GroupManager, Group, GroupConfig, GroupState, MerkleProof } from './types'; export declare class GroupManagerImpl implements GroupManager { private groups; createGroup(config: GroupConfig): Group; getGroup(groupId: string): Group | undefined; addMember(groupId: string, commitment: bigint): void; removeMember(groupId: string, commitment: bigint): void; getMerkleRoot(groupId: string): bigint; getMerkleProof(groupId: string, commitment: bigint): MerkleProof; exportGroupState(groupId: string): GroupState; getAllGroups(): Map<string, Group>; } //# sourceMappingURL=manager.d.ts.map