Shared identity registry

A contract at the fixed address 0x6666…6666 that holds the verification flags of each address (phone, Telegram, Bale, e-mail and eKYC), and the service the SUR Foundation runs to write them. No raw identity data goes on-chain. Described for developers and for users.

The design and code are written and tested, but the main network is not live yet. Real delivery of verification codes (SMS, Telegram, Bale, e-mail) and eKYC, meaning identity checking by a licensed provider, are not built yet. For ordinary dapps and users, using this service is optional; only a non-founding validator needs full verification to join.

What it is

The shared identity registry lets any address on SUR carry a few checkable facts: the person behind it has proved control of a phone number, a Telegram account, a Bale account and an e-mail address, and, once eKYC is built, a licensed provider has confirmed a real person stands behind it. It has two parts:

  • The IdentityRegistry contract at the fixed genesis address 0x6666…6666. For each address it holds the verification flags (yes/no), a self-declared name and person type, and a cryptographic commitment; it holds no raw identity data such as a national ID. Anyone can read it.
  • The Identity Service, run by the Foundation. It checks one-time codes and writes the flag into the contract. The service holds no key; every write is signed by a separate key-custody system that signs only a short list of permitted calls.

The network filters no transaction by identity, and each dapp decides what to ask for. The network's own contracts read the registry in several places: joining the validator set and buying or moving a validator seat (a non-founding validator must be fully verified), the entry draw, voting on the validators' board (a registered identity is required), and the identity level in document signing.

For developers

Reading from the chain needs no key, API account or registration. These calls are read-only:

  • hasIdentity(address): has the address registered, and has it not been burned by a migration?
  • getVerificationStatus(address): six booleans in this order: registered, phone, Telegram, Bale, e-mail, eKYC.
  • isFullyVerified(address): true only for a registered natural person holding all five verifications (under the current plan only Iranians are verified).
  • migratedTo(address): the new address if the identity was moved, otherwise zero.

For a burned address these three functions return false. Flags belong to an address; for a validator it is the voting account, not the node key and not the reward account (which needs no identity).

Matching is off-chain only. The registry deliberately does not answer "is this address's national ID X?" on-chain, because a value you send in a transaction is visible in public calldata. Matching is an API call to the Identity Service, not a transaction: a registered dapp sends an address, a field (national ID, full name, father's name, gender, birth date or mobile number) and the value it expects, and gets back only true or false. A dapp registers by signing an agreement with its own key and receives an API key. Matching works only for people who have passed eKYC, and eKYC is not built yet. The API address and fuller documentation will be published at docs.surnet.org when the main network launches. The contract address and ABI are on the contracts page.

For users

You register once in the Identity app and prove with one-time codes that your phone, Telegram, Bale and e-mail are yours. From then on any dapp that uses the registry can see which verifications you hold, and you do not hand over documents again for each dapp.

  • Who sees what? Anyone can read your verification flags (yes/no only) and the name you typed when registering. That name is not checked and is public, so write only what you are comfortable making public.
  • Who writes the flags? Only the Identity Service's own key. You, dapps and validators cannot. Only the Foundation's governance contract can replace or freeze that key; while it is frozen, new verifications and moves are refused, and registration and earlier verifications stay.
  • If you lose your key: from a new address you enter a code sent to one of your earlier verified contact points. The identity moves to the new address and the old one is burned for good. For people who passed eKYC, repeating eKYC is planned to be required as well; that step is not built yet. Anyone who gains control of your phone, e-mail, Telegram or Bale account (for example by SIM swapping) could move your identity under this rule. Only the identity moves, not funds or keys, and a validator seat does not move automatically; moving a seat is a separate step that is not fully built yet. The Foundation does not hold your key and cannot recover it. If someone else holds your key, moving the identity does not stop them, because a leaked key cannot be revoked on-chain.

What is stored where

On the chain (public)

The self-declared name and person type (natural or legal); the flags for registered, phone, Telegram, Bale, e-mail and eKYC; the mark that an address was burned; and a "commitment" (a salted hash) kept only to prove nothing was tampered with in a possible legal dispute, never used to answer a query.

Off the chain (never published)

In the design, the national ID, name, father's name, birth date and gender stay in the Identity Service's encrypted database. Face images, documents and biometrics stay only with the eKYC provider and are not copied. Your phone number, Telegram and Bale accounts and e-mail never go on-chain, only the flag that they were verified.

Raw data stays off the chain because nothing on a public chain is truly hidden, and even a hash of a ten-digit national ID can be broken without a separate secret. The retention period for raw data is not decided yet. The design provides for handing archived records to a competent court when it asks in writing.

Status and what is not built yet

  • The IdentityRegistry contract Ready in the design has been tested in a local test environment. In a first test round on Besu the flags and isFullyVerified were checked through validator entry, but not every function was tested separately on Besu. No independent security audit has been done.
  • The Identity Service Ready in the design: code verification, recovery by repeating a code, dapp registration and match queries. So far tested only on a local test chain, not on a live network.
  • Real code delivery (SMS, Telegram, Bale, e-mail) Not built yet: no gateway, bot or e-mail service is chosen and only a test stand-in exists.
  • eKYC Not built yet: its provider is not chosen and it will be added once one is. In the current plan the cost of an eKYC session is borne by the applicant (this may change), and only Iranian natural persons are to be verified for now. Until then the eKYC flag is set for nobody, so isFullyVerified is true for nobody and matching does not work.

FAQ

Can dapps see my national ID?

Not directly. It is not on the chain and a dapp only reads yes/no flags. A registered dapp can ask "is the value X correct?" and gets only true or false, and only once eKYC is built. Dapps are planned to register by signing a non-disclosure agreement; still, because a querier can supply guessed values, the agreement itself is the main safeguard, and it has not been legally reviewed yet.

Can a legal entity or a non-Iranian be verified?

Not for now. A legal person can register a self-declared name and type, but the contract accepts no verification for it. Whether that changes later has not been decided.

Updated: 2026/11/30