-
Notifications
You must be signed in to change notification settings - Fork 466
Open
Description
Is there any plan to verify ASA ownership for pull requests? Currently it seems to be run on trust that someone won't attempt to upload an incorrect/unauthorised logo for another ASA.
A solution such as a signed message could be used. E.g. I open a pull request, I commit my logo(s), I create a signed message including the previous commit ID, I commit the signed message to the PR.
Take my PR 301 as an example. My commit ID is e61c5dbd9180cd6a97608725bf23735d3b72cbc7
. To verify ownership I can now sign a message which includes the commit ID using my Algorand address private key:
{
"msg": {
"asa": "540605589",
"commit": "e61c5dbd9180cd6a97608725bf23735d3b72cbc7"
},
"addr": "VEGASPDWGUX2KTFFJFVZ6IE7TPSY4NVFVOKHXZGBBERXNF3JOWOZB2PZPU",
"sig": "s6pDjIsm9ChW+UQh58XyKqfYSxeO21VWlAvcBDyeuxt4Gpzdxx1ktLSx6eNEwvCr1AXOe\/1x1vVlQ315m8aQBQ=="
}
To verify we take the following steps:
- Verify
msg
,addr
andsig
are present - Verify
asa
andcommit
are present insidemsg
object - Verify
addr
is the owner ofmsg.asa
using an indexer API - Verify signature
Metadata
Metadata
Assignees
Labels
No labels