Nerif Docs
  • Quickstart
  • Tutorials
    • Lottery Tutorial
      • Step 1. Configure your account
      • Step 2. Add a smart contract
      • Step 3. Create a new automation workflow
      • Step 4. Build your automation workflow
      • Step 5. Test workflow execution
    • Bridge Tutorial
      • Step 1. Configure your account
      • Step 2. Add smart contracts
      • Step 3. Create a new automation workflow
      • Step 4. Build your automation workflow
      • Step 5. Test workflow execution
    • Price Feed Tutorial
      • Step 1. Configure your account
      • Step 2. Add smart contract
      • Step 3. Create a new automation workflow
      • Step 4. Build your automation workflow
  • 1. What is Nerif Network?
    • Our Mission
    • Our Vision
    • Terms
  • 2. Architecture
    • Core components
    • Validators
      • Networking
        • Bootnode
        • Joining the network
        • Leaving the network
        • Slashing
      • Consensus
        • Epoch & Rounds
        • Automation workflow
          • Triggers
          • Actions
          • Condition
    • Contracts
      • System Contracts
      • Operational Contracts
    • Security
      • DKG
      • Threshold ECDSA
      • Security checks
  • 3. How it works
    • Introduction
    • Nerif App
    • Login
    • Account Configuration
      • 1. Deploy a Gateway Contract
        • 1.1 Create a new gateway
        • 1.2. Use existing gateway contract
        • 1.3.What if I want to update my gateway contract?
      • 2. Top up your balance
        • 2.1. Topping up your balance on Polygon Mumbai
        • 2.2. Topping up your balance on Ethereum Goerli
    • Fees
    • User balance
      • 1. Topping up the balance
        • 1.1 Top up your balance via Nerif App
        • 1.2 Top up your balance directly via Registry smart contract
      • 2. Withdraw from balance
        • 2.1 Withdraw via Nerif App
        • 2.2 Withdraw directly via Registry smart contract
    • API
      • Off-chain APIs
      • On-chain APIs
    • SDK
  • 5. Nerif DAO
    • Governance
    • Treasury
    • Proposal process
  • 6. Support
Powered by GitBook
On this page
  • Registry Contract
  • Gateway Contract
  • SignerStorage Contract
  1. 2. Architecture
  2. Contracts

Operational Contracts

Operational contracts are essential for the network's functioning and provide features for users. The primary operational contracts include:

Registry Contract

The registry contract serves as an entry point for all transactions originating from the Nerif Network. It provides various network features, including billing mechanisms, customer contract execution, workflow management, security checks, and gateway management.

Gateway Contract

The gateway contract serves as a security entry point for transactions originating from the registry and directed toward the customer contract. Its role is to verify that a given transaction is part of the designated workflow belonging to a "trusted" user before forwarding it to the customer contract. Network users need to deploy and register their gateway contract per registry, a process facilitated by the user-friendly interface provided by the Nerif App.

SignerStorage Contract

The signer storage contract is a simple contract used to store the collective address generated during the DKG process. It is an essential component of network operations. The signature contact is not deployed to the mainchain, i.e. Polygon, but on sidechains (all blockchain networks supported by Nerif Network) only.

The registry contract utilizes SignerStorage to determine the current collective address. This ensures that only trusted transactions are accepted within the Nerif Network.

The above contracts collectively enable the Nerif Network's functionalities and ensure the smooth operation of the decentralized ecosystem.

PreviousSystem ContractsNextSecurity

Last updated 1 year ago