sismo-core/sismo-badges
소개
Sismo Badge Minting Protocol의 컨트랙트
비즈니스 및 금융측정된 스타 증가
- in 24h
- -1
- in 7 days
- -4
- in 15 days
- -8
- in 1 month
- -11
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThis repository contains the smart contracts of the Sismo Protocol.
There are three core contracts:
core/AttestationsRegistry.sol: The registry stores all attestations. It is owned by the governance that authorizes/unauthorize issuers to record in itcore/Attester.solThe 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 registrycore/Badges.solReads the registry. Stateless Non Transferable Token view of attestations (ERC1155)
It also contains implementations of attester in attesters/:
HydraS1SimpleAttester.sol: ZK Attester using the Hydra S1 Proving Scheme and the notion of nullifiers. Users must provide a ZK Proof along with their request to generate attestationsHydraS1AccountboundAttester.sol: Accountbound version of the Simple Hydra S1 Simple Attester. (Users can update at will where the attestation is stored)
Sismo protocol
A complete overview of the protocol is available in our documentation
Deployed contracts
Deployed contracts can be found here
Usage
Installation
yarn
Compile contracts
Compile contracts using hardhat
yarn compile
Test
Launch all tests
yarn test
Print storage layout
yarn storage-layout
Deploy on local chain
Terminal tab 1
yarn chain
Terminal tab 2
yarn deploy:local
Create a new Attester
To develop a new attester, you must inherit the core/Attester.sol abstract contract and implement the following functions:
_verifyRequest(request, proofData): You must implement the user request verification against the proof provided by the userbuildAttestations(request, proofData): You must build the attestations that will be recorded from a verified user request
Other optional hook functions that can be implemented:
_beforeRecordAttestations(request, proofData)_afterRecordAttestations(request, proofData)
The /attesters/hydra-s1/HydraS1SimpleAttester.sol is a good example of an attester implementing those functions.
A guide is offered in our documentation.
Feel free open a PR with your new attester in /attester!
License
Distributed under the MIT License.
Contribute
Please, feel free to open issues, PRs or simply provide feedback!
Contact

관련 프로젝트 살펴보기
불러오는 중…