{"id":13579745,"url":"https://github.com/sismo-core/sismo-badges","last_synced_at":"2025-05-13T21:12:39.113Z","repository":{"id":37532152,"uuid":"504215082","full_name":"sismo-core/sismo-badges","owner":"sismo-core","description":"Contracts of the Sismo Badge Minting Protocol ","archived":false,"fork":false,"pushed_at":"2023-10-03T15:47:29.000Z","size":4717,"stargazers_count":16047,"open_issues_count":7,"forks_count":531,"subscribers_count":192,"default_branch":"main","last_synced_at":"2025-04-28T17:05:10.924Z","etag":null,"topics":["attestations","did","ethereum","smart-contracts","zkp"],"latest_commit_sha":null,"homepage":"https://docs.sismo.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sismo-core.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-06-16T15:46:44.000Z","updated_at":"2025-04-28T08:43:31.000Z","dependencies_parsed_at":"2024-01-16T20:29:26.805Z","dependency_job_id":"115fedc0-6674-4bf0-b9cc-2cf450f00cef","html_url":"https://github.com/sismo-core/sismo-badges","commit_stats":null,"previous_names":["sismo-core/sismo-protocol"],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismo-core%2Fsismo-badges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismo-core%2Fsismo-badges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismo-core%2Fsismo-badges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sismo-core%2Fsismo-badges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sismo-core","download_url":"https://codeload.github.com/sismo-core/sismo-badges/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254029008,"owners_count":22002284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attestations","did","ethereum","smart-contracts","zkp"],"created_at":"2024-08-01T15:01:42.627Z","updated_at":"2025-05-13T21:12:34.088Z","avatar_url":"https://github.com/sismo-core.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","区块链、智能合约"],"sub_categories":["网络服务_其他"],"readme":"\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"docs/top.png\" alt=\"Logo\" width=\"100\" height=\"100\" style=\"borderRadius: 20px\"\u003e\n\n  \u003ch3 align=\"center\"\u003e\n    Sismo Protocol Contracts\n  \u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Made by \u003ca href=\"https://www.sismo.io/\" target=\"_blank\"\u003eSismo\u003c/a\u003e\n  \u003c/p\u003e\n  \n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://discord.gg/sismo\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Discord-7289DA?style=for-the-badge\u0026logo=discord\u0026logoColor=white\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/sismo_eth\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white\"/\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n  \u003ca href=\"https://www.sismo.io/\" target=\"_blank\"\u003e\n    \n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\nThis repository contains the smart contracts of the Sismo Protocol.\n\nThere are three core contracts:\n\n - `core/AttestationsRegistry.sol`: The registry stores all attestations. It is owned by the governance that authorizes/unauthorize issuers to record in it\n - `core/Attester.sol` The standard abstract contract must be inherited by attesters. Attesters are issuers of attestations. They verify user requests and build attestations that will be recorded in the registry\n - `core/Badges.sol` Reads the registry. Stateless Non Transferable Token view of attestations (ERC1155)\n\nIt also contains implementations of attester in `attesters/`:\n- `HydraS1SimpleAttester.sol`: ZK Attester using the [Hydra S1 Proving Scheme](https://hydra-s1.docs.sismo.io) and the notion of nullifiers. Users must provide a ZK Proof along with their request to generate attestations\n- `HydraS1AccountboundAttester.sol`: Accountbound version of the Simple Hydra S1 Simple Attester. (Users can update at will where the attestation is stored)\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n\n## Sismo protocol\n\nA complete overview of the protocol is available in our [documentation](https://protocol.docs.sismo.io)\n\n\n## Deployed contracts\n\nDeployed contracts can be found [here](https://docs.sismo.io/sismo-docs/deployed-contract-addresses)\n\n\n## Usage\n### Installation\n```\nyarn\n```\n\n### Compile contracts\nCompile contracts using hardhat\n```\nyarn compile\n```\n\n### Test\nLaunch all tests\n\n```\nyarn test\n```\n\n### Print storage layout \n```\nyarn storage-layout\n```\n\n### Deploy on local chain\n\nTerminal tab 1\n```\nyarn chain\n```\n\nTerminal tab 2\n```\nyarn deploy:local\n```\n\n\n## Create a new Attester\n\nTo develop a new attester, you must inherit the `core/Attester.sol` abstract contract and implement the following functions: \n\n-  `_verifyRequest(request, proofData)`: You must implement the user request verification against the proof provided by the user\n-  `buildAttestations(request, proofData)`: You must build the attestations that will be recorded from a verified user request\n\nOther optional hook functions that can be implemented:\n\n- `_beforeRecordAttestations(request, proofData)`\n- `_afterRecordAttestations(request, proofData)`\n\nThe `/attesters/hydra-s1/HydraS1SimpleAttester.sol` is a good example of an attester implementing those functions.\n\nA [guide](https://attesters.docs.sismo.io) is offered in our documentation.\n\nFeel free open a PR with your new attester in `/attester`!\n\n## License\n\nDistributed under the MIT License.\n\n## Contribute\n\nPlease, feel free to open issues, PRs or simply provide feedback!\n\n## Contact\n\nPrefer [Discord](https://discord.gg/sismo) or [Twitter](https://twitter.com/sismo_eth)\n\n\u003cbr/\u003e\n\u003cimg src=\"https://static.sismo.io/readme/bottom-main.png\" alt=\"bottom\" width=\"100%\" \u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsismo-core%2Fsismo-badges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsismo-core%2Fsismo-badges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsismo-core%2Fsismo-badges/lists"}