Skip to main content

Decoding DeFi Transactions with Keystone Hardware Wallet

I. What is an ABI?

An ABI (Application Binary Interface) is a crucial interface that facilitates communication between two binary program modules. In the Ethereum ecosystem, an ABI serves as a tool for decoding DeFi (Decentralized Finance) transactions.

For more information, check out Keystone's blog.

II. Why Implement ABI Decoding?

Keystone, driven by a commitment to enhance transaction security and reliability, recognized the need for safeguarding DeFi projects against potential risks such as blind signing. To address this, Keystone has developed a feature that implements an ABI on a microSD card. Further details are provided in their blog.

III. Keystone's Solution

To decode DeFi transactions using ABI via a microSD card, ensure you have:

A. Preparation

  1. Firmware version 0.9.0 or newer on Keystone Essential or Pro. Refer to the firmware upgrade guide for assistance.
  2. Bind "MetaMask Extension" with Keystone Hardware Wallet. Follow the tutorial.
  3. MicroSD card (Default FAT32 format, capacity not exceeding 512GB). Keystone can format microSD cards to FAT32 using this tutorial.
  4. MicroSD card reader (Not necessary if your laptop has an in-built one).

B. Decoding DeFi Transactions

  • Bind "MetaMask Extension" with Keystone Hardware Wallet. Refer to the tutorial.
  • Insert the microSD card into your computer and download the latest ABI Pack from Keystone's GitHub. Unzip the "contracts.zip" file to the microSD card's root directory.
tip

Tips: Verify ABI data using an open-source tool from GitHub > README.

  • Insert the microSD card into Keystone and turn the device on.
  • Create a DeFi transaction and obtain the unsigned transaction data in QR code format. Follow the steps in this guide.
  • On Keystone, navigate to [Menu] > [Watch-only Wallet] > [MetaMask / DeFi / Web3] > [Confirm]. Select the "scan" icon and scan the QR code from the "MetaMask Extension."
tip

Tips: Keystone supports switching wallet paths (ETH) to Ledger Live and Legacy formats. Check the tutorial for details.

  • Keystone will locate the relevant ABI and decode your transactions, displaying transaction details.
tip

Attention: Keep the microSD card plugged during verification.

Even if Keystone previously read the necessary ABI, you must insert the microSD card each time you sign a transaction.