EIPs Explained

ERC-7506 · Draft · ERC · 2023-08-31

ERC-7506: Trusted Hint Registry

A standard on-chain registry of small key-value "hints" (revocation status, trusted issuers, timestamps) organised by owner namespace and list, so ecosystems can publish verifiable metadata about their claims.

What problem does it solve?

Ecosystems constantly issue claims about their members: credentials, certificates, attestations. A claim alone is rarely enough to trust it. Verifiers also need supporting facts such as "has this credential been revoked?", "is this issuer trusted?" or "what hash was anchored at this time?".

ERC-7506 calls these supporting facts hints and proposes a standard contract, the Trusted Hint Registry, to publish and manage them on-chain with clear write permissions and an audit trail of events. It is designed with W3C Decentralized Identifiers and Verifiable Credentials in mind, but is not tied to them.

How it works

Data is a four-level mapping:

namespace (owner address) → hint list (bytes32) → hint key (bytes32) → hint value (bytes32)
  • Every address automatically owns its own namespace, so there is no "claim a name" step. Inside it, the owner creates any number of lists (e.g. a revocation list), each mapping keys to values.
  • Required functions: getHint, setHint, setHints, setHintsSigned.
  • Optional management: delegates with write access to a list (optionally until a timestamp), list ownership transfer (the list stays in its original namespace so references do not break), revoking a whole list with setListStatus, and per-hint bytes metadata.
  • Most write functions have a ...Signed variant: an owner signs an EIP-712 payload off-chain and anyone can submit it. A per-signer nonce prevents replay.
  • Events such as HintValueChanged, HintListOwnerChanged and HintListStatusChanged make every change traceable.
  • Optional ENS trust anchor: an ecosystem's ENS subdomain points to the registry contract and namespace via text records like hint.namespace and hint.list. The namespace owner sets a reverse link in its own namespace, giving a two-way connection.

Sample code

Publishing and checking a credential revocation (Solidity):

interface ITrustedHintRegistry {
    function getHint(address ns, bytes32 list, bytes32 key) external view returns (bytes32);
    function setHint(address ns, bytes32 list, bytes32 key, bytes32 value) external;
}

bytes32 constant REVOCATIONS = keccak256("credential-revocations");

// Issuer revokes a credential in its own namespace
registry.setHint(issuer, REVOCATIONS, keccak256(credentialId), bytes32(uint256(1)));

// Verifier checks it
function isRevoked(bytes32 credentialHash) view returns (bool) {
    return registry.getHint(issuer, REVOCATIONS, credentialHash) != bytes32(0);
}

Things to know

  • Status: Draft. Function sets and type hashes may still change.
  • The standard deliberately leaves governance out; what counts as a "trusted" namespace is up to each ecosystem (the ENS anchor is one way to establish it).
  • Hint values are a single bytes32. Anything larger goes in the optional metadata or off-chain with a hash on-chain.
  • Everything stored is public. Do not put personal data in hints; store hashes or identifiers instead.

#registry #identity #credentials #metadata #meta-transactions

Details

Authors
Philipp Bolte (@strumswell), Dennis von der Bey (@DennisVonDerBey), Lauritz Leifermann (@lleifermann)
Status
Draft
Type
Standards Track / ERC
Created
2023-08-31
Requires

Machine-readable: Markdown · JSON