semaphore-protocol / semaphore

A zero-knowledge protocol for anonymous interactions.
https://semaphore.pse.dev
MIT License
883 stars 193 forks source link

refactor!: use `maybeGetSemaphoreSnarkArtifacts` from `@zk-kit/utils #747

Closed sripwoud closed 4 months ago

sripwoud commented 4 months ago

Description

This PRs uses the maybeGetSemaphoreSnarkArtifacts function added in https://github.com/privacy-scaling-explorations/zk-kit/pull/240.
It deletes code that becomes unnecessary in @semaphore-protocol/proof.

Notes about docs:

Breaking change

Change Before After
SnarkArtifacts keys (optional param of generateProof) { wasmFilePath, zkeyFilePath } { wasm, zkey }

Related Issue(s)

Closes #746

Checklist

sripwoud commented 4 months ago

@sripwoud this PR introduces a breaking change (the SnarkArtifacts type has different property names). Worth mentioning it.

Done. Update PR title and description