Identity and Username
Cross-application identity and wallet control verification.
Onchain identity and DID capabilities#
Fresh deployments from 2026-10-24: Recruit 100 (default admission mining power, configurable per game) → Warrior 300 → Chief 2,700 → Retirement 8,100 mining power, paid on each actual milestone, totaling 11,200 per full cycle at the default. Later paid cycles earn real promotions again. Free seed warriors receive no admission or initial warrior reward. Taking over a seat (paid takeover or accepted transfer) pays the admission and warrior amounts on that seat's first handover (after an accepted transfer, once the new holder fills the seat); later paid takeovers pay only admission and later transfers pay nothing. Replacement is not retirement.
All mining power uses this game’s 6-decimal Honor.goldBalance ledger. Admission, promotion, retirement and the once-only profile reward increase lifetime combat power. Tasks, wars, sales and ordinary extensions only credit mining power. Spending never reduces power. Country creation/joining cost 10,000 / 20 mining power. Initial prestige imports lifetime power; leaving removes it and rejoining imports it once again.
Each game has its own mining power redemption pool. Availability, claim times and actual redemption results are determined by the game page and on-chain transactions.
X404 is a modular social protocol built on user-controlled onchain identity. Reuse identity and social connections across applications while keeping each game's data and rules independent.
X404 provides did:x404 identifiers, a resolver and DID Documents based on the DID Core 1.0 data model, with TypeScript, Go and standalone HTTP access. Applications can resolve identity ownership and verify controller signatures from ECDSA accounts or EIP-1271 contract wallets.
Identity is currently bound to a fixed wallet, without wallet migration, account recovery or key rotation. It does not prove real-world identity or one account per person.
DID resolution and specification
Unique identity key#
When the user modifies the profile, username, follow, post or like for the first time, the social contract allocates an incrementing profileId to the wallet. IDs start at 1 and are never recycled; 0 means not yet registered.
Cross-application persistent identification should use(chainId, socialContract, profileId), profileId or mutable username cannot be used alone. SDK'sidentityKey(chainId, address, id)Output this stable key.
const id = await social.profileId(account);
const name = await social.username(id);
const owner = await social.profileOwner(id);
const resolvedId = await social.resolveUsername('alice');Username Rules#
| Project | Rules |
|---|---|
| Length | 3–24 ASCII characters |
| First character | English letters |
| Subsequent characters | English letters, numbers, underlines |
| Case | Convert to lower case |
| Change or Clear | The old username is released immediately and may be occupied by other users |
The display name is in metadata and can use Chinese and other Unicode characters. The username is not an identity credential and cannot be used to bind permanent rewards, permissions or login relationships.
Wallet Permissions#
Write operations start withmsg.senderfor users. When forwarding calls through the application team contract, the social contract sees the application team contract address. Existing protocols do not have signature-based social proxy operations, account recovery, or wallet migration capabilities.
ERC-1155setApprovalForAllDo not authorize other accounts to modify your profile, follow, updates and likes, and the follow certificate cannot be transferred.
The application’s own background login can add signature authentication, but the login authorization will not automatically become the on-chain operation authorization. The backend must verify the domain name, chain ID, nonce, expiration time and signature ownership.
Shared vs. Independent Deployment#
The same chain and social address share identities, relationships and posts; different social contracts belong to different identity spaces. Official game instances share platform social addresses, but game mining power and kingdoms are separated from each other.