Other attributes
The Algorand Name Service (ANS) is a decentralized name service based on the Algorand blockchain. Users can register domain names and associate them with their wallet numbers. In addition, registered names can be sent to Algorand wallet accounts in the future. The purpose of ANS is to convert hard currency accounts and remember public accounts with clear names using Algorand smart contracts.
The prototype was first launched during the Encode x Algorand hackathon, where the company developed a plan to create a decentralized registration service for the Algorand ecosystem. The team continued its performance in the last event of the hackathon and earned second place in the overall competition of the hackathon.
ANS is designed to be decentralized and cost-effective. There are mainly two components:
1. Registry
An Algorand Stateful smart contract (ASC) is used to build a domain name registry. ASCs have global storage of up to 64 key-value pairs and local storage of up to 16 key-value pairs. Domain-related information such as the domain suffix and metadata are stored in global storage. And each name is an Algorand account that opts into the registry smart contract and stores the owner’s wallet address for future resolution.
2. Name Record
A name record is a standardized Logic Signature program (written in TEAL) with an arbitrary name input variable. For each unique compiled smart signature program there exists a single corresponding Algorand address. This address is used to opt-in to the registry smart contract and store the value of the owner’s wallet address. The logic sig account is subsequently re-keyed to the name owner’s wallet to avoid any unauthorized transactions in the future.
ANS aims to establish a name service for the Algorand community with the maximum degree of decentralization. The ANS smart contracts are currently being peer-reviewed and will be audited for security in the coming days. Additionally, JavaScript SDK and REST API are being developed to support ANS integration with DApps and Wallet Apps. Following successful testing, ANS will be launched on Algorand Mainnet with the current set of features while planned features will be pipelined for upcoming releases.