UNPKG

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

12 lines (11 loc) 486 B
import { DeployArgs, SmartContract, State } from 'o1js'; /** * A simple contract that stores a single field - the root of a Merkle tree. * Anyone can read the root, but only the owner of the contract private key can change it. */ export declare class TreeRootStorageContract extends SmartContract { treeRoot: State<import("o1js/dist/node/lib/field").Field>; /** o1js assumes that at least one method must be present */ foo(): void; deploy(args?: DeployArgs): void; }