Namoshi Architecture
Namoshi has two principal components:- The registry: The core contract that maintains a mapping of all domain names.
- Resolvers: Smart contracts that translate names into addresses and other resources.
nemo.btc or nemo.citrea that map to machine-readable identifiers such as Citrea (EVM) addresses, other cryptocurrency addresses, content hashes, and metadata.
Top-Level Domains
Unlike ENS which primarily operates on.eth, Namoshi focuses on bringing decentralized identity to the Bitcoin ecosystem via:
- .btc: Represents Bitcoin-native identities.
- .citrea: Represents identities on the Citrea rollup.
The Registry
The Namoshi registry is a single smart contract that maintains a list of all domains and subdomains. For each domain, it stores three pieces of information:- The owner of the domain.
- The resolver for the domain.
- The caching time-to-live (TTL) for all records under the domain.
Resolvers
Resolvers are responsible for the actual process of translating names into addresses. Any contract that implements the relevant standards may act as a resolver in Namoshi. When resolving a name in Namoshi:- The user asks the registry for the resolver responsible for the name.
- The user asks that resolver for the answer to their query.
Discount System
Namoshi implements a unique discount system for domain registration, allowing users to reduce costs through:- Referrals: Secure referral codes.
- NFT Ownership: Holding specific ERC721 tokens.
- Whitelists: Merkle-proof based whitelists.