🛠️Advanced Integration
Last updated
Last updated
Advanced integration involves connecting your contract to the Micapass protocol on-chain similar to basic integration, but unlike to basic one - no need to inherit MicapassBasicClient.sol and use modifiers within methods that need to be protected by Micapass.
Advanced integration means that you smart contract is responsible for interaction with Micapass smart contract.
Advanced Integration steps example overview:
Import and definition
Add the Micapass interfaces contracts to your codebase
IMicapassBaseVerifier.sol
- interface of Micapass main smart contract
Import IMicapassBaseVerifier.sol
interface to your smart contract
Define variable within your smart contract responsible for Micapass smart contract instance
Initialization
Pass actual address of Micapass to you smart contract during initialization, or through the setter method. Use the Micapass address of the chain you are going to deploy your smart contracts
Declare needed claim topic ID’s upon initialization
Prepare methods and requirements
Define your functions that are going to be protected by Micapass
Define which user should be checked for Micapass proofs (sender, receiver, etc)
Protection implementation
In each of the defined functions add the check or required statement for a user(s) verification check