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

Advanced Integration

Last updated 1 year ago

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:

  1. Import and definition

    1. Add the Micapass interfaces contracts to your codebase

      • IMicapassBaseVerifier.sol - interface of Micapass main smart contract

    2. Import IMicapassBaseVerifier.sol interface to your smart contract

    3. Define variable within your smart contract responsible for Micapass smart contract instance

  2. Initialization

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

    2. Declare needed claim topic ID’s upon initialization

  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

    1. In each of the defined functions add the check or required statement for a user(s) verification check

🛠️
Why Advanced Integration?