Technical Deep Dive
The registry contract deployed on the Polygon network is the foundation of the address book. The contract has undergone verification, and its source code is open for review here.
At its core, IDriss is made up of three mappings. First, we generate a hash called IDrissHash. It is a hash of the identifier, an optional (and encouraged) secret word (secretWord) , and an additional hash identifying the chosen wallet tag. The identifier is either an email, phone number, or Twitter user ID (which does not change when changing your Twitter username).
\begin{align} &IDrissHash = sha256(identifier+secretWord_{optional}+walletTag_{hash}) \\ \\ &IDrissHash_{verify}= sha256(IDrissHash+verifier_{key}) \\ \\ &IDrissHash \rightarrow IDrissHash_{verify}\end{align}
To normalize the input variables, we provide a number of methods to follow before generating the hashes:
After transforming the inputs, and are generated using
In an example, let's consider the IDriss identifier to be "[email protected]", the wallet tag hash "ETH_MM" for MetaMask Eth, and "gm" as the verifier key. No secret word is chosen. The resulting mapping looks as follows:
Second, the mapping that saves the resolving address to a given IDriss is mapped to from . In this example, the IDriss "[email protected]" resolves to the address 0x000...0000 with wallet tag "Metamask ETH".
Lastly, you can find IDriss ownerships in a mapping that stores your together with the address that has paid during sign-up. You are free to change the owner's address at any time. As this is an option, there might be a different means of payment in the future and therefore a different way of determining the original owner address. Head over to your Management Dashboard for any changes you would like to perform.
Beware: only the owner address is verified to change ownership of your IDriss. Make sure you do not lose access to this address. The owner address can also delete an IDriss from the registry.
In this example, the address 0x000..0000 owns the IDriss "[email protected]", meaning the owner address is the same as the address saved in the registry.
Last updated