This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
[Uniques v2] Buy offers with the off-chain signatures #11792
jsidorenko
started this conversation in
Ideas
Replies: 1 comment
-
As an extra idea - we could extend the Offer's object by adding an optional buyer's NFT that he offers. That would allow exchanging NFTs in an atomic way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea:
If we take the classic NFTs auction model, we would see a lot of buy offers being sent on-chain thus polluting the blockchain space and congesting the network. There is a way to achieve the same level of functionality by utilising the off-chain signatures.
For example, Alice decides to sell her NFT on the marketplace X. Bob wants to buy that NFT, pre-signs his offer and sends that signature (with offer details) in any way he wants (e.g. to the marketplace, or via system remarks).
Charlie also wants to buy that NFT for a higher price, so he submits his off-chain signature as well.
Now, Alice could choose the best offer (signature) and submit it on-chain.
On a technical level, the offer's object could include an asset the buyer is willing to pay with and an array of tips. An optional block number could be set as a deadline to control the validity of the offer.
Possible issue:
An off-chain signature doesn't reserve the currency on the user's account and thus can't guarantee the offer will be valid by the time of execution. As a possible solution, we can add the nonce param to the signed object meaning the offer will become invalid if the buyer decides to execute another transaction meanwhile. With that solution, we're offloading the check of the user's balance to the UI.
Technical implementation:
Beta Was this translation helpful? Give feedback.
All reactions