ERC3643
GithubWhitepaperERC3643 Association
  • Overview of the Protocol
    • ERC-3643 Permissioned Tokens
    • Built-in Compliance Framework
      • Onchain identities management
      • Modular Compliance add-ons
    • Interoperability & Standards
  • Smart contracts library
    • Permissioned Tokens
      • Tokens Interface
    • Onchain identities
      • ONCHAINID Interface
      • Identity Registry
        • Identity Registry Interface
      • Identity Registry Storage
        • Identity Registry Storage Interface
      • Trusted Issuers Registry
        • Trusted Issuers Registry Interface
      • Claim Topics Registry
        • Claim Topics Registry Interface
    • Compliance management
      • Compliance Interface
    • Tokens Factory
      • T-REX Factory Interface
      • Tokens Gateway
        • T-REX Gateway Interface
      • Official Factories & Gateways
    • Proxies
  • Resources & Community
    • Get Involved
Powered by GitBook
LogoLogo

ERC3643 ASBL - 2024 - contact@erc3643.org

On this page
Export as PDF
  1. Smart contracts library
  2. Onchain identities
  3. Trusted Issuers Registry

Trusted Issuers Registry Interface

The Trusted Issuers Registry interface defines the set of functions and events used to manage and verify trusted claim issuers within the T-REX protocol. Below is a detailed breakdown of each function and event, explaining its purpose, source, and functionality.

TrustedIssuerAdded

Event

Description: Emitted when a trusted issuer is added to the registry.

event TrustedIssuerAdded(IClaimIssuer indexed trustedIssuer, uint256[] claimTopics);

TrustedIssuerRemoved

Event

Description: Emitted when a trusted issuer is removed from the registry.

event TrustedIssuerRemoved(IClaimIssuer indexed trustedIssuer);

ClaimTopicsUpdated

Event

Description: Emitted when the set of claim topics is changed for a given trusted issuer.

event ClaimTopicsUpdated(IClaimIssuer indexed trustedIssuer, uint256[] claimTopics);

addTrustedIssuer

Source: ITrustedIssuersRegistry

Description: Registers a ClaimIssuer contract as a trusted claim issuer. This function can only be called by the owner of the Trusted Issuers Registry contract and emits a TrustedIssuerAdded event.

function addTrustedIssuer(IClaimIssuer _trustedIssuer, uint256[] calldata _claimTopics) external;

removeTrustedIssuer

Source: ITrustedIssuersRegistry

Description: Removes the ClaimIssuer contract of a trusted claim issuer. This function can only be called by the owner of the Trusted Issuers Registry contract and emits a TrustedIssuerRemoved event.

function removeTrustedIssuer(IClaimIssuer _trustedIssuer) external;

updateIssuerClaimTopics

Source: ITrustedIssuersRegistry

Description: Updates the set of claim topics that a trusted issuer is allowed to emit. This function can only be called by the owner of the Trusted Issuers Registry contract and emits a ClaimTopicsUpdated event.

function updateIssuerClaimTopics(IClaimIssuer _trustedIssuer, uint256[] calldata _claimTopics) external;

getTrustedIssuers

Source: ITrustedIssuersRegistry

Description: Returns an array of all claim issuers registered in the Trusted Issuers Registry.

function getTrustedIssuers() external view returns (IClaimIssuer[] memory);

getTrustedIssuersForClaimTopic

Source: ITrustedIssuersRegistry

Description: Returns an array of all claim issuer addresses that are allowed to issue a given claim topic.

function getTrustedIssuersForClaimTopic(uint256 claimTopic) external view returns (IClaimIssuer[] memory);

isTrustedIssuer

Source: ITrustedIssuersRegistry

Description: Checks if a given ClaimIssuer contract is trusted.

function isTrustedIssuer(address _issuer) external view returns (bool);

getTrustedIssuerClaimTopics

Source: ITrustedIssuersRegistry

Description: Returns the set of claim topics that a given trusted issuer is allowed to emit.

function getTrustedIssuerClaimTopics(IClaimIssuer _trustedIssuer) external view returns (uint256[] memory);

hasClaimTopic

Source: ITrustedIssuersRegistry

Description: Checks if a given trusted issuer is allowed to emit a certain claim topic.

function hasClaimTopic(address _issuer, uint256 _claimTopic) external view returns (bool);

PreviousTrusted Issuers RegistryNextClaim Topics Registry

Last updated 11 months ago