Using Light Node Contracts to Verify the Security of Bitcoin Transactions

To interact with Bitcoin, verify the security of data on Bitcoin, and achieve the innovative use of smart contracts on Marble Layer2, the functionality of BTC light node verification has been implemented. All execution nodes can submit Bitcoin maintenance data to the light node contract, which verifies data through mechanisms like difficulty checks and longest chain consensus, ensuring real-time consistency with low latency to the BTC network. As the data in the light node contract maintains low-latency real-time consistency with the Bitcoin network, all Bitcoin blocks confirmed by the light node are recorded in the contract state. When cross-chain transactions or synchronized transactions need verification, the SPV proof method can be used to validate the authenticity of these transactions by leveraging the stored Bitcoin block state in the light node contract, enabling operations like lending in Marble.