Key Takeaways

  • Understanding the role of the Secure Enclave in smartphones as hardware wallets.
  • Explaining the challenge of Ethereum's incompatibility with the mainstream secp256r1 standard.
  • How EIP-7951 resolves this issue through precompiled contracts.
  • The impact of EIP-7951 on account abstraction and wider Ethereum adoption.

In our digital age, many of us already carry a form of hardware wallet in our pockets—our smartphones. Devices like iPhones and Androids have dedicated security chips, such as the Secure Enclave in iPhones or Keystore/Trust Zone/StrongBox in Android devices. These separate physical areas, often called Trusted Execution Environments (TEEs), are designed with a 'enter only, no exit' principle. Private keys are generated inside these areas and never leave, allowing the outside world only to request data signatures. This is the core definition of a hardware wallet.

These chips commonly use an industry-standard algorithm chosen by NIST (National Institute of Standards and Technology): secp256r1. This algorithm is also the cornerstone of WebAuthn and FIDO2 (like fingerprint login and FaceID). However, here lies the rub. Ethereum natively does not support this mainstream secp256r1. Historically, the Bitcoin community chose the less common secp256k1 due to concerns about potential 'national-level backdoors' in NIST curves. Ethereum's account system design followed this tradition.

While r1 and k1 might differ by only one letter, they are entirely different languages mathematically. This leads to a significant pain point: the security chip in your phone is incompatible with Ethereum, unable to directly sign Ethereum transactions. Since the hardware cannot be changed, Ethereum must adapt to secp256r1. It's unrealistic for Ethereum to expect Apple or Samsung to change their chip designs to accommodate secp256k1. The only path forward is for Ethereum itself to adapt to secp256r1.

Can we use smart contracts to write code to verify r1 signatures? In theory, yes, but the mathematical computations are too complex. Running a verification could cost hundreds of thousands of Gas, making it economically infeasible. Here comes the Fusaka upgrade, where developers introduced a powerful weapon: Precompiled contracts. This is akin to opening a 'backdoor' or 'plugin' in the Ethereum Virtual Machine (EVM). Instead of requiring the EVM to calculate step-by-step, we can simply write the verification function directly into the client's core code. Developers can call a specific address to complete the verification at a very low cost. In EIP-7951, this cost was fixed at 6900 Gas, reducing from hundreds of thousands to a few thousand, finally entering the realm of 'everyday use in real products'.

The implementation of this EIP represents the final piece of the puzzle for "Account Abstraction". This means that we can finally use TEE environments in our phones to sign and authorize smart accounts on Ethereum. Note that this does not apply to existing EOA addresses like MetaMask (because their public key generation logic is still k1). It is specifically designed for "Account Abstraction wallets" (AA wallets). In the future, your wallet will no longer be a series of seed phrases, but a smart contract. This contract writes: "As long as this fingerprint (r1 signature) is verified as correct, transfers are allowed."

In conclusion, EIP-7951 might not make seed phrases disappear overnight, but it has finally removed the biggest obstacle to widespread Ethereum adoption. Previously, users always faced a harsh choice: Do you want to have 'bank-level' independent security? You'll need to buy a OneKey, Keystone, or Ledger, and keep your seed phrases as if you're keeping gold bars. Do you want the smoothest experience? You can only store your coins on exchanges or custodial wallets, at the cost of giving up control (sacrificing decentralization). With the implementation of EIP-7951, this choice will no longer exist. With the implementation of EIP-7951, 'phone as a hardware wallet' will gradually become a reality. For the next billion new users, they may not even need to know what a 'private key' is, nor do they need to face the psychological stress of copying 12 words. All they need is to scan their face or press their fingerprint, just like they do when buying coffee. The iPhone's security chip will sign the transaction using secp256r1, and it will be verified through Ethereum's native precompiled contract. This is the correct way for Ethereum to embrace the next billion users: not arrogantly demanding that users learn complex cryptography, but instead adapting to the common standards of the internet and taking the initiative to enter users' pockets.


Risk Warning: this article represents only the author’s views and is for reference only. It does not constitute investment advice or financial guidance, nor does it represent the stance of the Markets.com platform.When considering shares, indices, forex (foreign exchange) and commodities for trading and price predictions, remember that trading CFDs involves a significant degree of risk and could result in capital loss.Past performance is not indicative of any future results. This information is provided for informative purposes only and should not be construed to be investment advice. Trading cryptocurrency CFDs and spread bets is restricted for all UK retail clients. 

Latest news