This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
[Uniques v2] New approvals structure #11791
jsidorenko
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea:
In the V1 of Uniques pallet, the user can grant permission to a 3rd party to move an NFT on his behalf.
If we check the Ethereum ERC-721 spec, there is a similar pattern, but they allow to store a list of approvals instead of a single one.
At the same time, there is a security concern since they don’t reset the approvals on the NFT transfer. That allows an attacker to pre-approve his second wallet, then sell the asset and claim it back.
I’m proposing to go the ERC721 way and have an array of approvals as well, plus reset that list on every item transfer.
Technical implementation:
where an optional BlockNumber would act as a deadline until the approval is valid
Beta Was this translation helpful? Give feedback.
All reactions