Keystone Support
Official WebsiteCoin SupportBlogContact Us
English
English
  • 🧰Advice and Answers from Keystone Team
  • General Navigation Guide
  • About Keystone
  • ChangeLog
    • Keystone Firmware (Multi-Coin)
      • M-13.0(Multi-Coin)
      • M-12.6 (Multi-Coin)
      • M-12.4 (Multi-Coin)
      • M-12.2 (Multi-Coin)
      • M-12.0(Multi-Coin)
      • M-11.0(Multi-Coin)
      • M-10.8(Multi-Coin)
      • M-10.6(Multi-Coin)
      • M-10.4(Multi-Coin)
      • M-10.2(Multi-Coin)
      • M-10.0(Multi-Coin)
      • M-9.6(Multi-Coin)
      • M-9.4(Multi-Coin)
      • M-9.2(Multi-Coin)
      • M-8.8(Multi-Coin)
      • M-8.4(Multi-Coin)
      • M-8.2(Multi-Coin)
      • M-8.0 (Multi-Coin)
      • M-7.2 (Multi-Coin)
      • M-7.0 (Multi-Coin)
      • M-6.10 (Multi-Coin)
      • M-6.8 (Multi-Coin)
      • M-6.6 (Multi-Coin)
      • M-6.4 (Multi-Coin)
      • M-6.2 (Multi-Coin)
      • M-6.0 (Multi-Coin)
      • M-5.4 (Multi-Coin)
      • M-5.3 (Multi-Coin)
      • M-5.2 (Multi-Coin)
      • M-5.0 (Multi-Coin)
      • V 1.4.2 (Multi-Coin)
      • V 1.4.0 (Multi-Coin)
      • V 1.3.0 (Multi-Coin)
      • V 1.2.0 (Multi-Coin)
      • V 1.1.0 (Multi-Coin)
    • Keystone Firmware (BTC-Only)
      • B-3.6 (BTC-Only)
      • B-3.4 (BTC-Only)
      • B-3.2 (BTC-Only)
      • B-2.5 (BTC-Only)
      • B-2.0 (BTC-Only)
      • V 1.1.1 (BTC-Only)
    • Keystone Companion App
      • V1.2.3
      • V1.2.2
      • V1.2.1
      • V 1.1.2
      • V 1.1.0
      • ERC-20 Token Delisting
  • Getting Started
    • Setting Up Keystone (Legacy)
    • Setting Up Keystone (New)
    • Firmware Upgrade
      • How to Format a MicroSD Card to FAT32?
      • Verify the SHA256 Checksum of the Firmware Update File
    • Getting Started with M-10.0 or newer for Beginners
    • Keystone Mobile App Syncing
    • Receiving Cryptocurrency
    • Sending Cryptocurrency
  • Basic Features
    • Password
      • Setting Pattern Lock
      • Fingerprint Settings(Pro only)
      • Forgot or Reset a Password or Pin
    • Add Multiple Addresses
    • Add Tokens on the Mobile APP
    • Add labels to Address
    • View Transaction Details
    • Set System Settings
    • Wipe the Device
  • 3rd Party Integrations
    • Bitcoin Wallets
      • Casa
      • Enhance the security of BlueWallet
        • BlueWallet 2/3 PSBT Multi-sig: BlueWallet + Keystone + ColdCard
        • BlueWallet 2/3 PSBT Multi-sig: Keystone + ColdCard + SeedPicker
      • Specter
        • Specter 2/2 PSBT Multi-Sig
        • Specter 2/3 PSBT Multi-Sig
      • Sparrow Wallet
        • Sparrow Wallet 2/3 PSBT Multi-sig
      • Electrum
        • Electrum 2/2 PSBT Multi-sig
        • Electrum 2/3 PSBT Multi-sig
      • Wasabi Wallet
      • BTCPay Server
      • Nunchuk
      • Simple Bitcoin Wallet
    • ETH & Web3 Wallets
      • MetaMask
        • MetaMask & DeFi
        • Importing MetaMask Wallet into Keystone
        • Potential Trouble with Importing MetaMask wallet into Keystone
        • Importing Your Ledger Wallet/Account into Your Keystone Hardware Wallet
        • How to Switch ETH Path to Ledger Live / Legacy Format?
        • Configure EVM Chains on MetaMask
      • MetaMask Mobile
        • Defi with MetaMask Mobile
        • Configuring EVM Chains on MetaMask Mobile
      • OKX Wallet (Extension)
      • OKX Wallet Mobile
      • Bitget
      • Rabby Wallet
      • Core Wallet (Extension)
      • BlockWallet
      • Polkadot{.js} (DOT/KSM)
        • DOT/KSM Staking
    • Aptos Wallets
      • Fewcha Wallet (Extension)
      • Petra Aptos Wallet (Extension)
    • Arweave Wallets
      • 🦔ArConnect
    • Cosmos Wallets
      • Keplr (Extension)
        • How to Make IBC Transfers with Keystone
    • NEAR Wallets
      • Sender Wallet (Extension)
      • How to switch Near Path to Ledger format?
    • Polkadot Wallets
      • SubWallet
      • Metadata Update or Reset
    • Solana Wallets
      • Solflare Extension
      • Solflare Mobile
    • Dapp (DeFi)
      • Safe
      • Safe Mobile App
      • Zapper
      • Yearn Finance
      • SushiSwap
    • Other Coins
      • XRP Toolkit (XRP)
  • Advanced Features
    • Displaying Your NFT on the Lock Screen
    • Three BTC Address Formats Support
    • Change the derivation path of addresses
    • Export XPUB
    • Displaying ENS Names
    • Multi Signature
      • Delete Multisig Wallet
    • Staking
    • Decoding DeFi Transactions
    • Decoding Multi-Signature Transactions
    • Decoding 4-byte Function Signature
    • Recovery Phrase
      • Construct Your Own Recovery Phrase
      • Import or Create Shamir Backup
      • Use Dice to Generate Recovery Phrase
      • Recovery Phrase Check
      • Recover your Ledger Wallet
    • Passphrase
    • Self-Destruct Mechanism (Pro-only)
  • Miscellaneous
    • Security Practices
    • FAQ
    • Cobo Vault Companion App
    • Migrating from the Keystone Companion App to OKX: A Step-by-Step Guide
  • Keystone Tablet
    • Keystone Tablet Instruction Guide
    • Why does the Keystone Tablet have only 4 slots for a word?
Powered by GitBook
On this page
  • I. What is the 4-byte Function Signature?
  • II. Why did we implement this feature?
  • III. Decoding 4-byte Function Signatures

Was this helpful?

  1. Advanced Features

Decoding 4-byte Function Signature

PreviousDecoding Multi-Signature TransactionsNextRecovery Phrase

Last updated 2 years ago

Was this helpful?

I. What is the 4-byte Function Signature?

“Function calls” in the Ethereum Virtual Machine are specified by the first four bytes of data sent with a transaction. These 4-byte signatures are defined as the first four bytes of the Keccak hash (SHA3) of the canonical representation of the function signature. Click for more information.

II. Why did we implement this feature?

Keystone’s vision and mission have always been to make transactions more secure and reliable.

We have earned recognition from blockchain communities since we support the Decoding of DeFi Transactions as a feature for users. We have also received a lot of feedback from our users who want us to decode more content from the smart contract and convert that data to human-readable language. Hence, we decided to release a new feature to support the decoding of 4-byte Function Signatures. This will help users understand which function is used by this smart contract when signing a transaction if the concerning ABI can not be decoded, making their transactions safer and verifiable.

III. Decoding 4-byte Function Signatures

Firmware versions V6.0.0 (Multi-Coin) or newer support the decoding of 4-byte Function Signature.

1. Preparation

3) MicroSD card (Requirements: Default FAT 32 format and capacity not exceeding 512GB. MicroSD card is not included with Keystone.)

4) A microSD card reader (Not necessary if your laptop has an in-built one).

2. Decoding DeFi Transactions

2) Insert the microSD card into the Keystone and turn the device on.

3) Create a DeFi transaction and get the unsigned transaction data in QR code format.

4) Keystone: Select [Menu] > [Software Wallet] > [MetaMask / DeFi / Web3] > [Confirm]. Then select the "scan" icon on the top right of your screen to scan the QR code shown by your "MetaMask Extension".

5) Keystone hardware wallet will find the relevant 4-byte Function Signature and successfully decode the transaction(Please be advised that this will only happen if the ABI can not be decoded).

Attention:

1. During the verification process, please keep the microSD card plugged inside the Keystone device at all times. Never pull out the microSD card until you have completed all the signing steps.

2. Even if Keystone has previously read the necessary Selector, it will not remember it. You still need to insert the microSD with the relevant Selector list each time you sign a transaction for this function to work.

1) version V6.0.0 (Multi-Coin) or newer installed on Keystone Essential or Pro.

(Please see for more help.)

2) Your Keystone Hardware Wallet is bound to your MetaMask Extension in a particular web browser. ()

Tip: Keystone can format microSD cards to FAT32. ()

1) Insert the microSD card into your computer and download from our GitHub to the microSD card. Unzip the "selector.zip" file to your microSD card's root directory.

Tips: You can use an open-source tool to verify the data in the Selector. Click to download the open source tool from "GitHub > REDEME"

Firmware
firmware upgrade
Tutorial
Tutorial
method_signatures
here
here
Keystone-decoding 4-byte function signature-1
Keystone-decoding 4-byte function signature-2
Keystone-decoding 4-byte function signature-3
Keystone-decoding 4-byte function signature-4
Keystone-decoding 4-byte function signature-5
Keystone-decoding 4-byte function signature-6