Skip to content

Bitcoin Prism is a Bitcoin light client for implemented in Solidity

Notifications You must be signed in to change notification settings

annular-labs/bitcoinprism-evm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Prism

Bitcoin Prism is a fork of Bitcoin Mirror. Bitcoin Prism is intended to run on a single block chain which can then be queried from other chains to check for the existence of a valid proof. If claims against the Bitcoin network is make in an optimistic fashion, it allows for very effecient scaling.

Bitcoin Prism tracks Bitcoin on Ethereum

Bitcoin's block headers contain a merkle root of all transactions within. By verifying the block headers, we can use the merkle root to prove inclusion of a transaction in the Bitcoin network.

By examining the out scripts of the transactions, we can prove that a payment was made.

Quick Start

Compile and test the contract

Install Forge. Then:

forge test -vvv

Deploy the contract

Ensure ETHERSCAN_API_KEY is set. Then, run the following to deploy and verify.

cd packages/contracts
forge script -f $RPC_URL --private-key $PK -s 'run(bool)' --broadcast --verify  DeployBtcPrism true

Run with false for a deployment tracking the Bitcoin testnet rather than mainnet.

About

Bitcoin Prism is a Bitcoin light client for implemented in Solidity

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 100.0%