webb-tools / semaphore-anchor

A interoperable privacy gadget for creating anonymous proof of membership on blockchains.
http://semaphore.appliedzkp.org
MIT License
2 stars 0 forks source link

[TASK] verifyIdentity method on Semaphore.ts #13

Closed semaraugusto closed 1 year ago

semaraugusto commented 1 year ago

Is your feature request related to a problem? Please describe. Creating a proof for the verifyProof contract call requires too much pre-processing from the user. By providing a method verifyIdentity we can abstract away the proof generation from the user and only require him to provide the needed parameters.

Describe the solution you'd like An interface like this would allow users to create proofs for both current chain and an external chain by using the optional parameter externalGroup.

  public async verifyIdentity(
    identity: Identity,
    signal: string,
    groupId: number,
    chainId: number,
    externalNullifier: BigNumberish,
    externalGroup?: LinkedGroup
  ): Promise<ContractTransaction>
dutterbutter commented 1 year ago

Closed in https://github.com/webb-tools/semaphore-anchor/pull/10