ERC-8002: Simplified Payment Verification Gateway

Hey Magicians! We’ve just finished drafting the ERC to bring Bitcoin’s SPV node concept to Ethereum, paving the road to a trustless and native issuance of BTC. Would love to hear your feedback!

Please do check out the Wrapless research paper as well. It describes one of the use cases of this ERC through the usage of native BTC as a lending collateral.


Abstract

Introduce a singleton contract for on-chain verification of transactions that happened on Bitcoin. The contract is available at “0xTODO”, acting as a trustless Simplified Payment Verification (SPV) gateway where anyone can submit Bitcoin block headers. The gateway maintains the mainchain of blocks and allows the existence of Bitcoin transactions to be verified via Merkle proofs.

Motivation

Ethereum’s long-term mission has always been to revolutionize the financial world through decentralization, trustlessness, and programmable value enabled by smart contracts. Many great use cases have been discovered so far, including the renaissance of Decentralized Finance (DeFi), emergence of Real-World Assets (RWA), and rise of privacy-preserving protocols.

However, one gem has been unreachable to date – Bitcoin. Due to its extremely constrained programmability, one can only hold and transfer bitcoins in a trustless manner. This EIP tries to expand its capabilities by laying a solid foundation for bitcoins to be also used in various EVM-based DeFi protocols, unlocking a whole new trillion-dollar market.

The singleton SPV gateway contract defined in this proposal acts as a trustless one-way bridge between Bitcoin and Ethereum, already enabling use cases such as using native BTC as a lending collateral for stablecoin loans. Moreover, with the recent breakthroughs in the BitVM technology, the full-fledged, ownerless two-way bridge may soon become a reality, powering the permissionless and wrapless issuance of BTC on Ethereum.

Specification

Check out the full specification on GitHub:

The full reference implementation is available here.

7 Likes

Sounds nice. But couldn’t just anyone write such a trustless contract on ethereum? Is an ERC needed?

That’s true. But how would anyone know of its existence and be sure that it is secure? Such singletons are a boon and a bane for an ERC. Also, the standardized spec allows these contracts to be deployed across multiple chains & to the same address.

UPD: The reference implementation is now ready and is available here.

1 Like