Basic Integration
Quick start with basic integration
Last updated
Quick start with basic integration
Last updated
Basic integration involves connecting your contract to the Micapass protocol on-chain trough inheriting MicapassBasicClient
smart contract, which responsible for Micapass setup and user verifications, including modifiers etc
Import and inheritance ()
Add the MicapassBasicClient.sol
or MicapassBasicClientInitializable.sol
smart contracts to your codebase ()
Import and inherit from MicapassBasicClient.sol
or MicapassBasicClientInitializable.sol
your smart contract ()
Initialization ()
Pass the actual address of Micapass to your smart contract during the initialization method or constructor
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 ()
Add micapassProtected
modifier to each method which should be protected with Micapass by passing the address and claim topic that need to be checked