Closed crisdut closed 11 months ago
Hi, could you update the wasm api?
Hi, could you update the wasm api?
Yes, I think I finishing it today.
Prevents reuse of bitcoin utxos (force update dustless verification)
Suppose we have a seller who wanted to sell 5 items and wants to sell via sequential swap. Throughout operations, the UTXO related to assets may decrease to smaller fractions until it turns to dust. As the seller no longer changes the PSBTs after the start of the auctions (the coordinator manages it), I thought about making a "minimum satoshis for operation" rule for the RGB20 and RGB21 wallets, what do you think?
Prevents reuse of bitcoin utxos (force update dustless verification)
Suppose we have a seller who wanted to sell 5 items and wants to sell via sequential swap. Throughout operations, the UTXO related to assets may decrease to smaller fractions until it turns to dust. As the seller no longer changes the PSBTs after the start of the auctions (the coordinator manages it), I thought about making a "minimum satoshis for operation" rule for the RGB20 and RGB21 wallets, what do you think?
What do you guys think, @cryptoquick and @josediegorobles ?
@crisdut We should always have an input from the buyer for paying fees and paying for the dust output.
Also, there's no way to batch transfers with auctions because they're separate PSBTs, correct? That's fine so long as multiple sequences can be spent within the same block.
Description This PR intent supports sequential swaps and unifies the previous swap operations (now called "strategies").
Now, BMC have three ways to make swap operations:
Also, It was necessary to carry out some refactorings to increase the maintainability of the swaps in BMC, according to the checklist below:
Sequential Swaps (epic)
HotSwap
instead ofpresig=false
flagP2P
instead ofpresig=true
flagAuction
to allow use coordinatorinternal_create_buyer_bid
to allow reuse stepinternal_create_seller_offer
to allow reuse stepbundle_id
create_auction_bid
to allow create bid (sequential swaps)create_auction_offers
to allow create one or more offers (collections in sequential swaps context)create_auction_offers
needs return all offers published in orderbooktapret commits
only DH (Diffie–Hellman) carbonado dataCloses #413 Closes #365 Closes #422
PS: I added #422 here because we can resolve all offers/bids in one "big" L1 transaction.