Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmable Bitcoin account #3046

Open
Tracked by #1832
jolestar opened this issue Dec 12, 2024 · 0 comments
Open
Tracked by #1832

Programmable Bitcoin account #3046

jolestar opened this issue Dec 12, 2024 · 0 comments
Milestone

Comments

@jolestar
Copy link
Contributor

jolestar commented Dec 12, 2024

Deploy a Move contract to a Bitcoin address on Rooch and make it programmable with BTC.

OP_RETURN rooch $version action args

BTC hook contract

module my_addr::btc_hook{

  fun on_receive_btc(utxo: &mut Object<UTXO>, action: String, args: vector<u8>){
  }

  fun on_tx_conform(txid: address){
  }

}

BTC transaction queue

module bitcoin_move::transaction_queue{
   
   #[private_generics(W)]
   public fun submit_tx(_witness: W, psbt: PSBT);

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant