micapass
  • welcome
    • 👋Welcome to micapass
    • 📄Regulatory Context
    • ✏️Solution
  • SC Integration
    • 📍Overview
    • 👓Proof Types (Claim Topics)
    • ⛏️Basic Integration
      • Steps for Basic Integration
      • Examples of Basic Integration
    • 🛠️Advanced Integration
      • Why Advanced Integration?
      • Steps for Advanced Integration
      • Example of Advanced Integration
    • 📬Smart contracts addresses
  • LINKS
    • Web
    • X
    • Get micapass
Powered by GitBook
On this page
  1. SC Integration

Basic Integration

Quick start with basic integration

Last updated 1 year ago

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

Basic Integration steps overview

  1. Import and inheritance ()

    1. Add the MicapassBasicClient.sol or MicapassBasicClientInitializable.sol smart contracts to your codebase ()

    2. Import and inherit from MicapassBasicClient.sol or MicapassBasicClientInitializable.sol your smart contract ()

  2. Initialization ()

    Pass the actual address of Micapass to your smart contract during the initialization method or constructor

  3. Prepare methods and requirements ()

    1. Define your functions that are going to be protected by Micapass ()

    2. Define which user should be checked for Micapass proofs (sender, receiver, etc) ()

  4. 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

⛏️
step 1
step 1.1
step 1.2
step 2
step 3
step 3.1
step 3.2
step 4