Aptos Dev Tip: Use snarkjs-to-aptos for Easy Proof/Key Translation in GROTH16 Verifiers

The snarkjs-to-aptos tool converts snarkjs outputs (verification keys, public inputs, proofs) into Aptos-compatible formats. This facilitates building a Groth16 verifier module for Aptos smart contracts. Currently, it supports BN254-based Groth16, with plans for more protocols. To use it, clone the repo, set up the necessary files (verification key, public input, proof), and run the command to generate a Move module. You can then test and adjust it for your contract’s needs. More details are available in the GitHub repository.

5 Likes

Thanks for your information man

4 Likes