Technical Details
WebsiteDiscordOverviewSupport
  • Overview
  • Identity Protocol
    • Overview
    • Registry
    • Nodes & NFTs
      • Manufacturer
      • Vehicle ID
      • DeviceID
      • License
    • Auxiliary Contracts
      • Access Control
      • AdLicenseValidator
      • Eip712Checker
      • Mapper
    • Architecture
    • Pairing
  • Device Canonical Name
    • Overview
    • Contracts
      • DcnRegistry
      • DcnManager
      • PriceManager
      • Resolvers
  • Token & Governance
    • Token
    • Rewards
    • Governance
  • Data
    • Platform Components
    • DBC Decoding
    • Software-Only Connectivity
    • Data Storage
    • Validation
    • Data Dictionary
      • Sample Data
  • Hardware
    • Ecosystem
    • Open Hardware Spec
    • Manufacturing License
      • DIMO Memorandum of Understanding
      • Staking $DIMO for a Manufacturer License
    • Device License
      • Device Minting Certificate
      • Hardware and Security Audit
      • Testing and Quality Control
  • Abstraction
    • Sign In With Ethereum
    • Metatransactions
  • Security
    • Methods
    • Audits
    • User Privacy
Powered by GitBook
On this page
  1. Identity Protocol

Registry

PreviousOverviewNextNodes & NFTs

Last updated 1 year ago

Address:

The primary contract and system entry point is DIMORegistry. This contract has all of the storage and is in charge of adding, deleting, and updating modules. It also directs calls and transactions to the appropriate module, which houses the implementation logic, using delegate calls. Nevertheless, no module hasconstructor, and the only contract that does so is DIMORegistry.

The only contract that cannot be upgraded is DIMORegistry, which helps to increase security and fend against harmful attempts. Only addresses with the admin role can access the functions that alter modules.

struct Storage {
    // Maps function selectors to the implementations that execute the functions
    mapping(bytes4 => address) implementations;

    // Maps the implementation to the hash of all its selectors
    // implementation => keccak256(abi.encode(selectors))
    mapping(address => bytes32) selectorsHash; 
}
0xFA8beC73cebB9D88FF88a2f75E7D7312f2Fd39EC