rooch-network/rooch

[Bitcoin] Broadcast Bitcoin Transaction in Move

Opened this issue · 0 comments

We need to provide an approach to enable the developer to broadcast Bitcoin transactions in Move.

The Move contract can generate a Bitcoin transaction, requiring the user to sign it and auto-broadcast it to the Bitcoin network.

Solution

  1. Directly use the event::emit function and use a special event, such as BitcoinTransactionEvent; if the rooch node got this event, it would auto-broadcast the transaction to the Bitcoin network.
  2. The SDK calls the Bitcoin wallet to sign and broadcast the transaction.