# Hinkal Markdown version of https://ethbeat.org/zk-catalog/hinkal ## Summary **Warning:** Critical contracts can be upgraded by an EOA which could result in the loss of all funds. **Warning:** Arbitrary proofs can be forged if one entity retained secrets from a trusted setup ceremony: Hinkal had a single phase 2 contributor. - Creator: Hinkal - Total Value Secured: $75.75 K (+17.8% compared to seven days ago) - Trusted setups for Snarkjs (Groth16): - Hinkal, risk red (highest risk) per the [Trusted Setups Risk Framework](https://forum.ethbeat.org/t/the-trusted-setups-framework-for-zk-catalog/381): Circuit-specific trusted setup for the 15 Groth16 Hinkal circuits over BN254. Phase 1 used 54 participant contributions and a public randomness beacon. Each proving key holds a single phase 2 contribution, made without a public ceremony, so whoever made it could forge proofs. - Used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - Verifiers: 1 successful (verified by [ETHBEAT](https://ethbeat.org)) - Main prover: BN254 (curve), Snarkjs (Groth16) ### About A shielded ledger for ERC-20 tokens and ETH with private transfers and swaps, run by Hinkal, which can read every note. ### Links - Website: https://hinkal.io - Docs: https://hinkal-team.gitbook.io/hinkal - Repository: https://github.com/Hinkal-Protocol/Hinkal-Contracts-Circuits - Social: https://x.com/hinkal_protocol, https://t.me/hinkal_protocol - Other: https://app.hinkal.io, https://chromewebstore.google.com/detail/hinkal-wallet/khfjgapjfcdoffmklchibpepboholpbe ## Value secured The interactive TVS chart is shown on [the HTML page](https://ethbeat.org/zk-catalog/hinkal#tvs). ## Milestones & incidents - 2026-08-25: [Pool ownership moves to a timelock](https://etherscan.io/tx/0x3edad43af4d9d5e3d18e116ecacd5e43ae94e7a9403465d75bb11467b942fdaa). An EOA hands the pool to a timelock behind Hinkal's 2/3 Safe. - 2026-07-24 (incident): [2023 Hinkal pool frozen](https://etherscan.io/tx/0x53c7a4490fe7beab196b44365edd991ed9497d308bbc0843adda15aa50919195). Hinkal's owner removes the 2023 pool's helper, so the deposits still in it cannot leave. - 2026-07-16: [Current pool goes live](https://etherscan.io/tx/0x85f1ad3bc33e75b4ad2f487f3976012c288343bbba7ff19c504546cc2c433284). Hinkal deploys a new pool without access tokens, and its app moves users to it. - 2026-07-02 (incident): [2025 Hinkal pool drained](https://blocksec.com/blog/web3-security-hinkal-double-spend). An attacker withdraws about 800K USDC they never deposited from the previous pool. ## Trusted setups Risk levels follow the [Trusted Setups Risk Framework](https://forum.ethbeat.org/t/the-trusted-setups-framework-for-zk-catalog/381). Yellow (medium risk): all contributions are published and the final output can be verified, the ceremony client is open source, there were at least 30 contributions, participation was open to the public and announced, and participants are publicly identified. Green (lowest risk): everything required for yellow, with at least 150 contributions. Red (highest risk): at least one requirement for yellow is not met. N/A: the proof system needs no trusted setup. ### Hinkal - Risk: red (highest risk) - Proof systems: Snarkjs (Groth16) - Phase 1: 54 contributions - Phase 2: 1 contribution (The only participant is not named.) **Risks** - Arbitrary proofs can be forged if the single phase 2 contributor retained secrets from the trusted setup ceremony. Circuit-specific Phase 2 trusted setup for Hinkal's 15 Groth16 circuits over the BN254 curve: `MainEVMCircuit` in 14 sizes (tokens × inputs × outputs) and `MainEVMCircuitMin`. It builds on the Hermez ceremony as Phase 1. The `powersOfTau28_hez_final` files contain 54 Perpetual Powers of Tau participant contributions and one public randomness beacon. No transcript or participant list for Phase 2 was published. Hinkal's documentation only says that it runs a per-circuit setup. Each of the 15 proving keys that Hinkal's apps download holds exactly one Phase 2 contribution, named "1st Contributor Name" (the example name in the snarkjs README), and no beacon. Whoever kept the secret randomness of a key's Phase 2 contribution can forge proofs for that circuit. - Phase 1 file description (54 contributions and a beacon): . - Hinkal's description of its setup: - Circuits: [Hinkal-Contracts-Circuits/circuits](https://github.com/Hinkal-Protocol/Hinkal-Contracts-Circuits/tree/61b6839aa80fc0c33bfdcde0323753c83cb2ce67/circuits) - Proving keys, e.g. [mainEVMCircuit1x2x1_final-4.zkey](https://wallet-prodv12.hinkal.io/verifiers-v4/mainEVMCircuit1x2x1_final-4.zkey). The URLs of all 15 are listed in `constant.mjs` of [@hinkal/common 0.4.1](https://www.npmjs.com/package/@hinkal/common/v/0.4.1?activeTab=code). ## Verifier IDs List of different onchain verifiers for this proving system. Unique ID distinguishes different deployments of the same verifier from different verifiers (e.g. different versions). ### Groth16: Snarkjs Circom / iden3 implementation of Groth16 proving system written in JS. #### Hinkal verifiers v4 - Verifier ID: `Hinkal 15 circuit verifiers 20.11.2026` - Source: https://github.com/Hinkal-Protocol/Hinkal-Contracts-Circuits/tree/61b6839aa80fc0c33bfdcde0323753c83cb2ce67/circuits - Verification: successful (verified by [ETHBEAT](https://ethbeat.org)) - Used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) **Known deployments** - [0x2cd65aC8E4bF2Ac3d21fDb0b9330CF6233b1Ca4d](https://etherscan.io/address/0x2cd65aC8E4bF2Ac3d21fDb0b9330CF6233b1Ca4d#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0x54828b631Df9F0D804b1A316d8cEBcF1773b4484](https://etherscan.io/address/0x54828b631Df9F0D804b1A316d8cEBcF1773b4484#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0x637b83147535231a4488d472490226dF69AB0408](https://etherscan.io/address/0x637b83147535231a4488d472490226dF69AB0408#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0x64489e6F9C2b0767d7b57CD4c896EcAa4E98eA61](https://etherscan.io/address/0x64489e6F9C2b0767d7b57CD4c896EcAa4E98eA61#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0x6Fc16639da7bd937E283eE8d460D4DbB57fBAB79](https://etherscan.io/address/0x6Fc16639da7bd937E283eE8d460D4DbB57fBAB79#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0x7DEDDE9C37c81a6d30D3934933b73B8E42DeB14D](https://etherscan.io/address/0x7DEDDE9C37c81a6d30D3934933b73B8E42DeB14D#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0x843cA657cE751A0B5aD601deC214953e9E7E155F](https://etherscan.io/address/0x843cA657cE751A0B5aD601deC214953e9E7E155F#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0x846D2B3b5cc5B6AA94a0b4ca9814EA2a353570a9](https://etherscan.io/address/0x846D2B3b5cc5B6AA94a0b4ca9814EA2a353570a9#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0xA8d3E41A1531dC002B51F00afdC6FAFe7BD5cAB7](https://etherscan.io/address/0xA8d3E41A1531dC002B51F00afdC6FAFe7BD5cAB7#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0xb1c3C21f4DCc7d95B3D514f4Fd5A70C89016dE8c](https://etherscan.io/address/0xb1c3C21f4DCc7d95B3D514f4Fd5A70C89016dE8c#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0xc0291cCc4e8E86C88106B4ABb194812C7191fc4A](https://etherscan.io/address/0xc0291cCc4e8E86C88106B4ABb194812C7191fc4A#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0xC3681c62468784b49BbdACe3bF5E50ED1b0163b0](https://etherscan.io/address/0xC3681c62468784b49BbdACe3bF5E50ED1b0163b0#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0xCE6A76b544d7CcbD2dD5F649479304866810541E](https://etherscan.io/address/0xCE6A76b544d7CcbD2dD5F649479304866810541E#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0xdC93693a1Cd128b15094514EFe3C35F413D841a8](https://etherscan.io/address/0xdC93693a1Cd128b15094514EFe3C35F413D841a8#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) - [0xE8405c68A5c0aFF32128FDe91a2f059D7fF4DC89](https://etherscan.io/address/0xE8405c68A5c0aFF32128FDe91a2f059D7fF4DC89#code) on Ethereum, used in: [Hinkal](https://ethbeat.org/privacy/projects/hinkal) ##### Verification steps The Hinkal contract verifies ZK proofs for 15 Hinkal circuits, one Groth16 verifier contract per circuit, each reached through a `VerifierEVM*v4` adapter that the Hinkal contract selects by transaction dimensions. This regeneration attests that the verification keys in the 15 onchain `mainEVMCircuit*v4` verifiers correspond to circuits published in the Hinkal repo and to the proving keys that the Hinkal app downloads. Generally, to regenerate all Hinkal verification keys, the following has to be done: 1. Check out commit `61b6839aa80fc0c33bfdcde0323753c83cb2ce67` of the [Hinkal-Contracts-Circuits repo](https://github.com/Hinkal-Protocol/Hinkal-Contracts-Circuits). The repo has no `component main` files, so generate them: `MainEVMCircuit(tokenCount, inputCount, outputCount, 25)` for the 14 sizes in the verifier names (`mainEVMCircuitxxv4`) and `MainEVMCircuitMin()`, with the public inputs that the contract fills (`rootHashHinkal, signedMessageHash, erc20TokenAddresses, amountChanges, inNullifiers, outTimeStamp, outCommitments, calldataHash, H0Ax, H0Ay`, or `outTimeStamp, calldataHash` for the Min circuit). 2. Download the 15 proving keys from `https://wallet-prodv12.hinkal.io/verifiers-v4/mainEVMCircuit_final-4.zkey`, the URLs that the `@hinkal/common` package uses. They contain circuit information and Groth16 phase 2 trusted setup information. 3. Build circom v2.2.3 (the version in the published witness generators) and compile circuit sources into `.r1cs` binaries, with `circomlib` v2.0.5 from npm. 4. Download the Hermez phase 1 trusted setup files `powersOfTau28_hez_final_{09,18,19,20,21}.ptau`, check their hashes against the snarkjs README, and use them to verify that all published prover keys correspond to the compiled circuits. Use a file one power above the key's domain size: for domains above 2^14, snarkjs computes the circuit hash differently when the file has exactly the domain's power. This step will implicitly check the integrity of phase 2 contributions. 5. Generate all 15 verification keys from all prover keys, and make sure that they are identical to the ones in the onchain smart contracts. Each proving key contains a single phase 2 contribution, see the Hinkal trusted setup description. Helper scripts that implement the flow above and more detailed explanations could be found in this [script .zip archive](https://trusted-setup-hosting.ethbeat.org/privacy/hinkal/verification_hinkal.zip). This .zip must be extracted next to a `Hinkal-Contracts-Circuits` checkout on commit `61b6839aa80fc0c33bfdcde0323753c83cb2ce67` before the execution.