Objective: To develop a carbon-neutral HyperChain on the Aeternity blockchain and launch a Carbon NFT platform, enabling environmentally responsible blockchain operations and supporting carbon offset initiatives, and to share useful findings with the Aeternity Foundation community.
Application Status
New
Date Updated
[Today’s Date: January 27, 2025]
Submitted By
Matthew Pickup
Team
Architects of the Carbon Utility Token and the Retire App for tokens
Approved Budget (in Hours)
250
Used Budget (in Hours)
0
Planned Delivery
1-3 months
Funding Category
Infrastructure, Sustainability, Community
Application Title
Development of a Carbon-Neutral HyperChain and Carbon Offset NFT
Applicant
CUT Carbon Distributed Technologies AG
Value Application
This project would open the door to direct integrations for other Aeternity projects and chains into a pool of certified carbon offsets. It creates opportunities for carbon-neutral protocols and proof of green credentials for activities on various hyperchains.
Definition of Terms
N/A
Status Quo
To date, we have helped users offset over 6 million kg of carbon on the blockchain. New technologies like blockchain can often be hindered by concerns about their power usage footprint. This project helps continue the adoption and exploration of blockchain while enabling greener or completely carbon-neutral activities.
Required Work
- Feasibility Study: Assess potential, sustainability, and technical requirements for implementing a carbon-neutral HyperChain.
- Minting Contract: Develop a smart contract for minting Carbon NFTs, representing verified carbon offsets.
- HyperChain Development:
- Deploy renewable energy-powered Virtual Machines.
- Implement DevOps automation and set up core blockchain components.
- Establish a HyperChain testnet with Aeternity rollups for testing.
- Smart Contract Deployment for Carbon NFTs:
- Introduce staking mechanisms linked to CO₂ NFT deployment.
- Optimize staking load and incentivize green node operations.
Estimate
250 hours of developer time
Known Limitations
- Aeternity blockchain uncertainties may affect deployment or scalability.
- Challenges in mastering the Sophia smart contract language.
- Complexity in integration and security measures.
Outlook
This project is the first step toward unlocking interoperability between many chains and projects, enabling an Aeternity-native source of digital carbon credits.
Publishment and Maintenance
The project results and code will be published openly, and we commit to maintaining the project post-completion.
Dear @cut.eco,
Your application for Development of a Carbon-Neutral HyperChain and Carbon Offset NFT has been approved!
Please update your proposal with an email address where we can share more information on the contracting and reporting schedule.
Grant Update – Green Hyperchains Feasibility & Deployment
Much time was spent working on the feasibility study for green hyperchains, focusing on sustainability, technical requirements, and deployment strategy.
Our assessment and experiments using Sofia found that its programming model is transferrable enough from other EVM-style languages that we don’t anticipate immediate challenges. However there are some nuances around Aeternity’s oracle system and architectural needs that will likely require a dedicated carbon agent that runs alongside the hyperchain.
To establish an ideal hosting environment, we evaluated options and selected Zetta, a carbon-neutral data center in Norway. Their team has been highly responsive, and we’re now setting up DevOps tooling using OpenTofu and OpenStack to prepare for repeated AE testnet deployment experiments within their environment.
Additionally, we’ve identified the need to calculate the carbon footprint of rollups to the Aeternity blockchain—what we call the “upstream footprint” of proof-of-work operations. This will help create carbon drawdown solutions for the entire Aeternity ecosystem and create a mechanism for the Carbon NFT with retirement attributions to get burned and lock into offset that PoW behaviour.
We hope to be able to share access to a production version of hyperchain with the community in the coming weeks to do more load testing and put the carbon NFT through its paces.
Total time spent so far: 115 hours.
Next Steps:
- Deploy smart contracts
- Configure AE testnet in Zetta’s environment
- Develop footprint calculation model
Green Hyperchains - Phase 1 Report
Phase 1 focused on laying the groundwork for the Green Hyperchains project, including initial technical exploration of Sophia, selecting infrastructure, and beginning development of the Carbon Agent smart contract. While positive progress was made in understanding Sophia’s capabilities and establishing a partnership with a carbon-neutral data center, a significant challenge arose from the immaturity and frequent changes in the underlying hyperchain implementation being developed concurrently. This shifting foundation made it difficult to achieve the anticipated traction in integrating our components.
Key Activities & Findings
Carbon Agent Smart Contract Development (Initial)
Our initial deep dive into Aeternity’s Sophia programming language confirmed its potential for implementing complex smart contract logic, compatible with EVM-style paradigms. We were particularly happy with the language’s expressiveness and believe it will allow us to push most of the required functionality directly into the contract, with actions triggered by events firing within the system. This approach also allows the contract state to be queried externally without needing additional API endpoints.
Preliminary implemnentation was completed the CarbonAgent
smart contract. The focus was on defining the core data structures (lease
, receipt
, epoch
) and entrypoints for registering leases and epochs, and reporting impact. A unit test suite was also developed, covering contract initialization, lease and epoch registration, reporting impact against a lease, and various data retrieval functions for leases, receipts, and epochs to ensure their functionality is accurate while the plugin is being developed.
Infrastructure Setup
The partnership with Zetta, a carbon-neutral data center in Norway, was solidified. An initial testnet was successfully deployed and configured to run as a hyperchain connected to the Aeternity testnet. However, this deployment was subsequently spun down after a Hyperchain Release Candidate (RC) introduced backward-breaking changes that required new base contracts redeployed. Following this, effort shifted more towards the development, debugging, and gaining a deep understanding of the underlying hyperchain implementation itself, along with configuring a stable development environment to facilitate faster plugin iteration. Initial steps were taken to configure the DevOps environment using OpenTofu and OpenStack for future testnet deployments.
Architectural Shift: Agent to Plugin
During Phase 1, a deeper understanding of the hyperchain’s internal architecture and required integration points led to a significant architectural shift. We moved away from the initial concept of a separate “Carbon Agent” service running alongside the hyperchain towards developing a “Carbon Plugin” designed for direct integration within the hyperchain node itself. This fundamental change was driven by the need for tighter coupling, more efficient data exchange, and the ability to directly hook into internal blockchain events like pins, epochs, and hyperchain functions.
Relying on external communication via a websocket connection through middleware introduced unnecessary layer traversal for what is inherently an internal piece of functionality, making the plugin approach more suitable for integrating sustainability mechanisms intrinsically into the hyperchain’s operation.
Challenges
Unstable Hyperchain Implementation
The most significant challenge during Phase 1 was the rapid evolution and instability of the core hyperchain implementation being developed in parallel. This included a number of release candidate versions being published. As the hyperchain’s architecture, features, and APIs were frequently shifting, with some updates breaking backward compatibility or causing associated tooling to stop working, our efforts to integrate the Carbon Agent and smart contract were significantly hampered. This lack of a stable target made it difficult to build and test our components effectively, impacting the planned development velocity. Despite these challenges, we were able to open pull requests against internal projects to help fix things that broke or were overlooked, and we are happy that we could continue to exercise the rigor of the hyperchains implementation. While we are happy with the maturity of the software as a whole, due to some miscommunications as well as being at arm’s length from the core team there was a lot of time spent gaining a deep understanding of the Aeternity core code to navigate these changes.
Community Engagement and Technical Support
Another challenge encountered was the difficulty in accessing timely technical support and engaging with the development community. We attempted to contact and ask technical questions in the linked Discord and Telegram channels, but found them largely inactive and filled with what appeared to be bots or crypto scammers. While we believe the foundation has done a great job on the website, social media, and is doing good work consolidating the documentation, once developers are past the initial entry points, the resources and active community presence become quite sparse. There is a noticeable lack of official communication from anyone on the core development team in terms of upcoming releases, major changes, or future features from an implementation perspective. This made it challenging to anticipate changes and get clarification on implementation details, contributing to the time spent on understanding the core code base directly.
Embracing the External Perspective
Reflecting on the challenges faced and the lack of direct access to core developer resources that were initially anticipated, we’ve come to view this not as a setback, but as a valuable opportunity. Experiencing the hyperchain development process from the perspective of external community members provides a unique and important viewpoint. This position allows us to rigorously test the system as any community developer would, identifying areas for improvement in stability, implementation clarity, and documentation from a user’s standpoint.
Given the Aeternity foundation’s goals of broadening adoption and strengthening community engagement, we believe our role as external contributors who can provide candid feedback on the developer experience is highly valuable. We are enthusiastic about continuing in this capacity for Phase 2, contributing to the hyperchain’s maturity and helping to ensure a smoother journey for future community developers.
Next Steps (Adjusted)
Given the challenges encountered in Phase 1, the focus for subsequent phases will need to include:
- Continuing to monitor and adapt to the evolving hyperchain implementation, prioritizing stabilization and understanding of core features relevant to integration points.
- Further developing and refining the Carbon Agent smart contract and Carbon Plugin, enhancing the plugin’s maturity to fully expose contract features via emitted events and implementing comprehensive unit tests.
- Planning for integration testing once a stable hyperchain version is released.
- Planning and deploying the Carbon Attribution NFT system (code-named OCAP), with its architecture to be detailed and released as part of a Phase 2 application.
- Prioritizing clear and comprehensive documentation to facilitate the understanding and adoption of carbon-neutral hyperchains by the wider community.
Looking Ahead: Community Redeployment
Despite the challenges faced in Phase 1, we remain enthusiastic about the potential of Green Hyperchains. We are actively working towards a more stable hyperchain implementation and the maturation of the Carbon Plugin. We look forward to the next phase, where we anticipate being able to redeploy nodes within our carbon-neutral infrastructure and share our progress with the Aeternity community, inviting them to participate in testing and validation of this environmentally conscious blockchain solution.
Resource Allocation
Phase 1 provided valuable insights and established key partnerships. However, the challenges presented by the unstable underlying hyperchain necessitate an adaptive approach for future phases. We remain committed to the project’s goals and will adjust our plans to align with the hyperchain’s development progress.
Link to the seed for Carbon Neutral hyperchains project: Radicle Explorer
Open source peer-to-peer collabration stack we are using to publish our work: radicle.xyz/
The Repository Identifier (RID) for the repo to clone it from the network:
rad:z3PHPznddi8hmrvcKiWcYwFkm9XLM
Link to the feasibility study, completed mid-project: Radicle Explorer