You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey I'm pretty new to bitcoin (have some experience on the ethereum side). Does the Minsc compiler generate some kind of calling convention so that we know what kind of input we have to provide to interact with the script (like an ethereum ABI)? As I understand it, to run the HTLC example, I have to do the following steps:
Create a bitcoin transaction
Set the inputs to fund the contract using the sender's UTXOs
Set a single output to be a P2WSH script representing the HTLC
Then to redeem:
Create a bitcoin transaction
Set a single input to be the HTLC output from before
Set the output to be a P2WPKH to the recipient in the swap
Set the witness to ? I am not sure what to do here.
Also wondering if there is an end to end example of creating an actual transaction and redeeming the outputs anywhere, I am having trouble with many of the smaller details.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey I'm pretty new to bitcoin (have some experience on the ethereum side). Does the Minsc compiler generate some kind of calling convention so that we know what kind of input we have to provide to interact with the script (like an ethereum ABI)? As I understand it, to run the HTLC example, I have to do the following steps:
Then to redeem:
Also wondering if there is an end to end example of creating an actual transaction and redeeming the outputs anywhere, I am having trouble with many of the smaller details.
Beta Was this translation helpful? Give feedback.
All reactions