Last updated a week ago
Services & dapps relying on live "hot wallets" are vulnerable to private key theft, enabling adversaries to sign fraudulent transactions. Existing hardware wallets cannot be used autonomously.
This is the total amount allocated to Hardware-Secured Hot Wallets for Live Services (Dexes, Bridges, Side-Chains & Dapps). 1 out of 4 milestones are completed.
1/4
Prevent remote attacks on the hardware hot wallet keys
Cost: ₳ 24,762
Delivery: Month 3 - Jun 2024
2/4
Harden the hardware hot wallet to local side-channel attacks
Cost: ₳ 24,762
Delivery: Month 6 - Sep 2024
3/4
Demonstrate capabilities with a live Cardano project
Cost: ₳ 20,635
Delivery: Month 9 - Dec 2024
4/4
Project completion documentation and video
Cost: ₳ 12,381
Delivery: Month 10 - Jan 2025
NB: Monthly reporting was deprecated from January 2024 and replaced fully by the Milestones Program framework. Learn more here
A secure-hardware "hot wallet" can prevent wallet keys from becoming compromised while enabling autonomous transaction signing capabilities required by live services.
Milestone 3 of our project will entail partnering with a project within the community to demonstrate the capabilities of our developed prototype. Since our solution has wide applicability within the Cardano ecosystem, we expect the likelihood of a successful partnership to be high.
This project will be fully open source under the MIT license.
Cryptocurrency projects often require the use of "hot wallets'' to sign wallet transactions necessary for live services, making them vulnerable to private key theft and fraudulent activities by attackers. Traditional hardware wallet devices cannot be used for these purposes, as they require a human-in-the-loop to manually approve and authenticate every transaction. To address this issue, we propose the development of a hardware-based hot wallet that ensures enhanced security and autonomy for cryptocurrency projects, such as cross-chain bridges, side-chains, dexes, and token mints.
For example, a service providing a cross-chain bridge from BTC to ADA maintains wallets on each blockchain. When users provide BTC, the bridge mints an equivalent amount of a "wrapped" BTC token on the Cardano blockchain. Likewise, when users send wrapped BTC to the bridge on the Cardano side, these tokens are "unwrapped", i.e. burned, and the original BTC locked on the Bitcoin chain is sent to the user. This bridge service must maintain "hot wallets" on both blockchains and the dapp's software will automatically sign transactions from these wallets as users utilize the bridge. If an adversary gains access to the server running this service, the wallet keys can be compromised, allowing adversaries to steal all of the BTC being held by the bridge. This isn't a hypothetical scenario; billions of dollars of cryptocurrency has been stolen through leaked hot wallet keys. Protecting the integrity of autonomous transactions is crucial for the success and trustworthiness of cryptocurrency services.
Our solution is to develop a field-programmable gate array (FPGA)-based hardware device that leverages physical unclonable function (PUF) technology and deliberate electrical interface restrictions to prevent attackers from extracting private keys from the device. The hardware hot wallet will differ from traditional hardware wallets by providing continuous and automatic transaction signing once the device owner unlocks it with an authentication code.
A PUF utilizes unique physical properties of a hardware device to generate a one-of-a-kind response to a challenge. In the context of our solution, the PUF is leveraged to securely store a wallet’s key within the device. The primary advantage of using a PUF is that it makes it virtually impossible for an attacker to retrieve the private key from the device, even through sophisticated attacks. By utilizing this unclonable and tamper-resistant mechanism, our solution would ensure a high level of security and protection for the private key, safeguarding it against unauthorized access and potential theft.
In addition to leveraging the PUF for securing the private key, our solution implements an additional layer of security by restricting access to the device itself. To ensure maximum protection, we will employ a restricted UART interface for communication between the hardware device and a host computer. This deliberate choice eliminates any potential vulnerabilities that could arise from complex and exploitable communication protocols, such as Ethernet. The device’s software will only accept a very limited communication protocol and will not allow shell access to the device. By utilizing this basic interface, we effectively minimize the attack surface and make it virtually impossible for an attacker to gain remote access to the hardware.
Key benefits:
Our solution is applicable to a variety of services throughout the Cardano ecosystem. By providing a hardware wallet solution for live services, our solution could greatly enhance the security of projects running on Cardano, strengthening the overall trust and reliability of the Cardano ecosystem, and attracting more developers and users to build and engage with the blockchain.
The hardware hot wallet automates transaction signing without compromising the security of private keys, streamlining and simplifying live wallet operation for service developers building on Cardano. This enhancement in security enables developers to focus on building and scaling their applications, making it easier and more efficient to develop on Cardano.
The Viper Science team has been an active contributor to the Cardano community for over four years. In addition to operating stake pools since the Incentivized Testnet, we have developed several open source tools for Cardano developers and SPOs. Five of these projects have been successfully funded through Catalyst in the past:
A complete list of our contributions can be found at https://viperscience.com. Additionally, our team has specific domain expertise to develop the FPGA-based hardware and accompanying firmware required to make this project successful. Details about the team members’ technical backgrounds are included below.
Success will be measured through several key metrics, primarily focusing on the adoption and integration of our solution into services running on the Cardano blockchain. By the end of our 12-month project, we aim to achieve the following milestones:
Milestone 1 - Prevent remote attacks on the hardware hot wallet keys [20 weeks, 24,892 ada]
Sign transactions on the hardware device. The wallet’s private key will be generated offline and stored encrypted on the device. The electrical interface between the PC running the live Cardano node and the hardware device will be intentionally limited to a heavily restricted UART interface that only accepts binary transaction packets. This will prevent remote attackers from exploiting software vulnerabilities to access the private key, e.g. by gaining remote network/shell access to the hardware device from the host PC.
Deliverables: Demonstration video showing the hardware device successfully signing Cardano testnet transactions.
Acceptance Criteria: Prototype hardware specifications, software repository, and documentation published.
Intended outcomes: At this stage, a functional prototype will be able to make it impossible for a remote attacker to gain access to the hardware hot wallet’s private keys due to physical restrictions on the device’s electrical interface.
Milestone 2 - Harden the hardware hot wallet to local side-channel attacks [22 weeks, 26,237 ada]
Implement a PUF on the SoC’s FPGA to encrypt/decrypt a private key generated on the device. This makes the device resilient to physical side-channel attacks.
Deliverables: Demonstration video showing the hardware device successfully signing Cardano testnet transactions.
Acceptance Criteria: Prototype hardware specifications, software repository, and documentation published.
Intended outcomes: At this stage, the wallet key will be protected from local side channel attacks on the hardware
Milestone 3 - Demonstrate capabilities with a live Cardano project [10 weeks, 22,200 ada]
Partner with a member of the Cardano community to utilize our prototype to protect their service’s hot wallet keys (this will likely be done on the testnet)
Deliverables: Demonstration video showing the hardware device successfully running within a live service on the Cardano testnet.
Acceptance Criteria: Feedback from the partner service on the effectiveness and ease of use for our prototype received.
Intended outcomes: At this final stage, we will have demonstrated the capability to protect a live service’s wallet keys and gained valuable feedback that could be used to further develop this concept for widespread use.
The Viper Science team members are:
Dylan Crocker, PhD: Engineer & developer (https://www.linkedin.com/in/dylan-andrew-crocker/)
Dylan is an Electrical Engineer with experience in antenna and radar system design as well as software development. He earned a PhD in Electrical Engineering, with a minor in Computer Science, from Georgia Tech. His PhD research focused on ultra-wideband antenna design. Dylan got started building in the Cardano ecosystem when running a stake pool during the Incentivized Testnet in 2019. His most recent work includes an open source implementation of Cardano primitives written in modern C++.
Willie Marchetto: Engineer & developer (https://www.linkedin.com/in/willie-marchetto-2268aa266/)
Willie is a computer & astronautical engineer experienced in designing, developing, integrating, & deploying electronics and software for satellites, embedded devices, and traditional compute systems. His technical contributions span the areas of high-performance computing, web application development, DevOps system administration, satellite electronics design, embedded systems software/firmware, and machine learning algorithm development. Willie has been an active Cardano developer and stake pool operator since 2019 and is currently the chief engineer for research & development at an aerospace engineering contracting company.
The project team consists of engineers with advanced degrees, each with over ten years of professional experience developing and building complex systems in research & development environments. As a baseline labor rate, we are using a relatively conservative rate of $63.91, which is the mean hourly wage for software developers in the US according to the US Bureau of Labor Statistics.
Budget breakdown:
Assumed ada exchange rate: $0.38/ada
The cost of the project represents excellent value for money for the Cardano ecosystem for four key reasons: