sismo-core/sismo-badges ? reverse-engineered prompt
Reverse engineered prompt
Build me the Sismo badge minting contracts for a protocol that stores attestations and exposes them as non transferable badges.
I want the project to include a registry for attestations, a base attester contract that new attesters can inherit from, and a badges contract that reads the registry and shows the attestations like ERC1155 style badges. Also include the two Hydra S1 attester examples, one simple proof based attester and one accountbound version where the user can change where the attestation is stored.
Please make sure the contracts compile and the tests cover the main flows, like authorizing issuers, recording attestations, verifying requests with proofs, and reading badges from the registry. If there are deployment or local chain scripts already expected in this repo, wire those up too so I can run it locally and see it work.
Keep the code clean and match the style of an existing Solidity and Hardhat project. If you need anything unclear, look up the current docs online first.
Are you gonna build this?
make sure you review the code using coderabbit