Decentralized: The ADAMANT Messenger × Massa DeWeb Collaboration
1
0
ADAMANT Messenger, designed to be the most secure and private messenger operating entirely on blockchain, is now available on Massa DeWeb. This integration represents a significant step toward a fully decentralized web. With the recent update featuring IPFS file and image transfer, it’s a major advancement for privacy-conscious users.
Previously, ADM developers announced this integration on X. In this article, we’ll guide you through the process of deploying ADAMANT Messenger on Massa DeWeb, including registering a domain and accessing the app. Yes, you can do it yourself from the source code!
- About Massa DeWeb
- Registering a .massa domain
- Uploading ADAMANT Messenger to DeWeb
- Linking .massa domain
- Accessing DeWeb apps
- Updating DeWeb Apps
- Conclusion
About Massa DeWeb
Massa is a high-performance Layer 1 blockchain designed for freedom, offering 10,000 transactions per second, a DeWeb solution, and autonomous smart contracts.
Massa’s DeWeb is a decentralized hosting platform built on the Massa blockchain. It enables developers to host static websites and applications directly on the blockchain, eliminating the need for centralized servers. By utilizing Massa’s decentralized infrastructure, DeWeb ensures that applications are censorship-resistant, secure, and accessible to users globally.
Resistance to censorship is a key feature of DeWeb that attracted the ADAMANT community to Massa. This, along with the deployment of proxy nodes, a Tor app, and autobuilds on static content providers like GitHub Pages, has been crucial. Some governments are already restricting access to the adm.im app in an attempt to censor messaging. However, the community is actively taking steps to counter these restrictions.
Further reading:
Registering a .massa domain
To host ADAMANT Messenger on DeWeb, the first step was to register a .massa domain using the Massa Name Service (MNS). This decentralized DNS system operates on the Massa blockchain.
- Create MAS wallet and get some MAS using CEX or Dusa DEX
- Navigate to mns.massa.net or its decentralized version, mns.massa.network
- Connect a wallet
- Search for a desired domain name
- Complete the registration and pay the fee in MAS tokens
The Massa Team generously reserved and offered the adm.massa domain to us for free, showcasing the collaborative spirit of the decentralized ecosystem.
Uploading ADAMANT Messenger to DeWeb
The next step is to upload the ADAMANT Messenger app to Massa DeWeb. Here’s how we did it:
- Install the DeWeb CLI tool
npm i -g @massalabs/deweb-cli - Build the ADAMANT Messenger app
git clone git@github.com:Adamant-im/adamant-im.git
npm run build
This will generate a /dist folder containing all the static files required for deployment. - Upload the App to DeWeb
SECRET_KEY=wallet_private_key npx @massalabs/deweb-cli upload ./dist — node_url https://mainnet.massa.net/api/v2
Upload process:
- The upload process took approximately 15 minutes for the 10MB bundle
- The total cost was about 1000 MAS, which includes storage and gas fees
- The funds are not burned but locked for as long as the app occupies space on the blockchain. If the app is dehosted, the tokens are returned
Upload output:
✔ Preparing batches
› Total of 58 files, 58 require update
› 0 files will be deleted from the smart contract
› Total of 210 chunks divided into 161 batches
✔ Estimated upload cost
› 161 batches found for a total of 9.82 MB
› Total estimated cost: 1032.6899 MAS (with 1.61 MAS of operation fees)
✔ Prepare upload
✔ Confirm SC preparation
› Files changes detected
› Metadata changes detected
› Estimated cost of SC preparation:
› + Files init: 0.4568 MAS
› + Storage: 0.3132 MAS
› - Files to delete: 0 MAS
› + Metadatas: 0.0032 MAS
› - Metadatas to delete: 0 MAS
› SC preparation costs 0.7932 MAS (including 0.02 MAS of minimal fees)
✔ Preparing SC for upload
› SC prepared for upload
✔ Estimating gas cost for each batch
› Total gas cost: 0.706606426 MAS
✔ Confirm upload
✔ Upload Recap: 161 completed, 0 failed, 0 waiting
✔ Recap
› Total estimated cost: 1033.396506426 MAS
› Website deployed at AS1…
Upload complete!
Linking .massa domain
To make the app accessible via the adm.massa domain, we linked the domain to the smart contract address.
- Navigate to mns.massa.net or mns.massa.network.
- Select your domain.
- Click the pencil icon to edit the domain settings.
- Paste the smart contract address and save the changes.
Once linked, the app became accessible via domain adm.massa.
Accessing DeWeb Apps
There are two ways to access ADAMANT Messenger on Massa DeWeb: through public providers or locally via DeWeb software.
Using public providers
Public providers allow users to access DeWeb apps without additional setup. Here are the public URLs for ADAMANT Messenger:
You’ll see a confident “Hosted on chain” badge when visiting the messenger app.
Via DeWeb software
For a fully decentralized experience, users can install DeWeb software on their devices and access websites locally. This allows direct interaction with the Massa blockchain.
- Download and run the DeWeb binary: https://docs.massa.net/docs/deweb/local-server-config/setup-local-server#step-1-download-the-binary
- Open https://adm.localhost:8080 in your browser.
Updating DeWeb Apps
Updating a website is also called editing. The process is as simple as uploading a new website.
Here is output for the recent update of the ADM app:
Editing website at address AS14…, no deploy needed
✔ Preparing batches
› Total of 10 files, 10 require update
› 7 files will be deleted from the smart contract
› - assets/materialdesignicons-webfont-Dp5v-WZN.woff2
› - screenshots/.DS_Store
› - assets/materialdesignicons-webfont-CSr8KVlo.eot
› - assets/materialdesignicons-webfont-PXm3–2wK.woff
› - assets/materialdesignicons-webfont-B7mPwVP_.ttf
› - assets/index-CyJYxiNn.js
› - assets/index-SOcDBiUV.css
› Total of 89 chunks divided into 81 batches
✔ Estimated upload cost
› 81 batches found for a total of 4.94 MB
› Total estimated cost: 519.447 MAS (with 0.81 MAS of operation fees)
✔ Prepare upload
✔ Confirm SC preparation
› Files changes detected
› Metadata changes detected
› Estimated cost of SC preparation:
› + Files init: 0.0688 MAS
› + Storage: 0.054 MAS
› - Files to delete: 0.0287 MAS
› + Metadatas: 0.0032 MAS
› - Metadatas to delete: 0 MAS
› SC preparation costs 0.1073 MAS (including 0.01 MAS of minimal fees)
✔ Preparing SC for upload
› SC prepared for upload
✔ Estimating gas cost for each batch
› Total gas cost: 0.344497024 MAS
✔ Confirm upload
✔ Upload Recap: 81 completed, 0 failed, 0 waiting
✔ Recap
› Total estimated cost: 519.791497024 MAS
› Website deployed at AS14…
Upload complete!
Conclusion
The collaboration between ADAMANT Messenger and Massa showcases the potential of decentralized technologies. By following the steps outlined in this article, you can deploy your applications on Massa DeWeb and contribute to the evolution of the decentralized web.
Decentralized: The ADAMANT Messenger × Massa DeWeb Collaboration was originally published in ADAMANT on Medium, where people are continuing the conversation by highlighting and responding to this story.
1
0
Securely connect the portfolio you’re using to start.