[Bitcoin] Broadcast Bitcoin Transaction in Move
Opened this issue · 0 comments
jolestar commented
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
- Directly use the
event::emit
function and use a special event, such asBitcoinTransactionEvent
; if the rooch node got this event, it would auto-broadcast the transaction to the Bitcoin network. - The SDK calls the Bitcoin wallet to sign and broadcast the transaction.