minauth-merkle-membership-plugin
Version:
This package contains an implementation of a simple MinAuth plugin that extends the concept of password authentication into authenticating within sets that provide a level of anonymity. The proofs are built and verified with MINA's `o1js` library & proof
17 lines (16 loc) • 435 B
TypeScript
import { Field } from 'o1js';
import { ProofGenerator } from 'minauth/dist/plugin/proofgenerator.js';
/** The configuration for the Merkle memberships proof generator */
export type Conf = {
pluginUrl: string;
allInputs: Array<{
treeRoot: Field;
leafIndex: bigint;
secret: Field;
}>;
};
/**
* Export the generator
*/
export declare const generator: ProofGenerator<Conf>;
export default generator;