This issue aims to construct a "secret_hack" and "nullifier_hack" to pass the circuit checking.
-
The circuit related operation is defined on MNT6.
-
The nullifier is generated by the secret through poseidon.
$$nullifier = Poseidon(secret)$$ -
The generation of leaf_g.
- Calculate
$pk$ , which is a point on curve MNT6$$pk = secret * G_{MNT6}$$ - Calculate leaf_g, which is the
$x$ of$pk$ $$leaf_g = pk.x$$
- Calculate
-
leaf_g is on the Merkle tree with specified root.
So the key is to construct the secret_hack. Clearly, there are two points on curve with the same x, which is the symmetric point of
So
All the calculation is on MNT6.