You / Enter
Create your identity
Your identity in Dysnomia is a LAU: a small contract of your own that holds your name, your Soul and your Aura. You create it from your wallet, register it, and every other part of the game reads it from then on.
Your identity's picture appears here once a LAU exists. It is drawn from uint160(LAU) % MotzkinPrime, like on its identity page.
function Enter(string memory name, string memory symbol) public returns(uint64[3] memory Saat, Bao memory On) {
if(_activeUsers[msg.sender] != 0) revert UserAlreadyCreated(msg.sender);
What Enter does
VOID.Enter is where an identity is born. It runs inside your LAU while the LAU is being created, so you never call it yourself. In one transaction it:
- draws your Soul, a random number (
Saat[1]) that names you everywhere in the system; - computes your Aura from your wallet:
uint160(tx.origin) % MotzkinPrime(Saat[2]); - takes a Pole from YANG (
Saat[0]), and builds your Rod SHA, Cone SHA and the SHIO that pairs them (yourBao); - records the caller in
_activeUsers. A caller can be created once: a second Enter from the same caller reverts withUserAlreadyCreated.
Checked on chain: calling VOID.Enter from an existing LAU reverts UserAlreadyCreated(thatLAU). Because each LAU is its own caller, the guard is per LAU, not per wallet. A wallet links to its identity through CHO (step 2).
Three steps
Each step is a transaction you sign in your own wallet. Check runs it as a simulation first and shows the cost; nothing is sent until you press Sign. This page never asks for a seed phrase or private key.
-
1
Create your LAU to do
LAUFactory.New(string name, string symbol) returns (address LAU)
Deploys your LAU. Its constructor calls
VOID.Enter(name, symbol), which does everything above. The name is your username; the symbol is the ticker of your LAU token. -
2
Register it to your wallet after step 1
CHO.Enter(address UserToken)
Tells CHO that this LAU is yours, so every contract can find it from your wallet (
CHO.GetUserTokenAddress). Only an owner of the LAU can do this; anyone else getsInvalidOwnership. -
3
Start your YUE optional
SEI.Start(address UserToken, string name, string symbol)
Creates your YUE, the token that keeps your Hypobar and Epibar at each territory. You need it to play: without one,
CHEON.SurevertsNotStarted. Skip it if you only want to chat.