Operator-assisted Withdrawal
Last updated
Last updated
If a user requests to withdraw tokens, the operation can be completed by an operator holding Bitcoin.
The following smart contract functions are available:
Initiate Withdrawal: The user specifies an amount and target address. The smart contract collects the funds and registers the withdrawal request.
Operator Assignment: An operator responds and selects a set of UTXOs they control to service the request. The withdrawal is assigned to them. As soon as the state is confirmed, they transfer Bitcoin to the target address using the preselected UTXOs.
Complete Withdrawal: The operator completes the operation by presenting proof of inclusion in the Bitcoin blockchain for the transaction to the target address. The smart contract then transfers the target amount in tokens to the operator.