Closed sohkai closed 5 years ago
I'm going to give this a shot!
This is what I have in mind, let me know what you think:
sign
which will have the following signature:sign(data: string, address: string): Observable
data
will be the data to sign and address
will be the address to sign the data with.
sign
requests.@macor161 Great :)!
aragon-client
package, and as you'll see it'll just be marshalling the data through the messenger.
sign()
's address
parameter will be filled in with the user's current unlocked account, so probably don't need to have it herearagon/aragon
, or other "server"s. They should be able to detect that a new signing request is coming through (just through an observable is fine), and appropriately show them a UI for it (e.g. our signing panel). The transaction flow is really similar.Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 1.15 ETH (237.42 USD @ $206.45/ETH) attached to it as part of the Aragon DAC fund.
hey @Quazia, can you approve mul1st or arealdeadone to start work? They're waiting!
@mul1sh I've approved you for work on this milestone, let us know if you have any questions.
@Quazia ok thanks for the approval, let me begin work now. Will let you know in case of any queries 🙂
@sohkai just to confirm, how should the signing occur?
Also do you have an im
i.e. slack where we can chat more easily as I work on this issue? If not github comments are still fine with me 🙂
https://aragon.chat/ is the main messenger, but github is probably better. I'm not sure I understand the question but I'd assume you'd use web3 to sign the data which should be in part 2 of the 3 steps above and should be in the handler.
@mul1sh The request for signing should go through a similar observable as the transaction observable
that a client implementation (e.g. aragon/aragon
) can then pick up and show a UI for.
Take a look at eip 712 and see if you can make this compatible with it.
@sohkai @Quazia @jvluso thanks for the feedback, I appreciate it 👍 let me implement it like this then, should be done in a few hours 🙂
@sohkai whats the difference between an Aragon wrapper and an Aragon app?
@mul1sh Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@mul1sh Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@sohkai @Quazia any feedback on this query? https://github.com/aragon/aragon.js/issues/124#issuecomment-434746107 , want to wrap up this issue
@mul1sh The "wrapper" (as we used to call it), is aragon/aragon, and is what's used to view an org and its installed apps (e.g. aragon-apps).
In particular, aragon/aragon will need another flow in the signing panel to handle signature requests from apps, displaying both which app requested it, as well as the data they'd like to sign.
@sohkai awesome thanks for the clarification, let me wrap up this issue then
@mul1sh Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@mul1sh Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@gitcoinbot yeah final commit coming up shortly
Thanks for the update @mul1sh!
@mul1sh Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@mul1sh Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
@mul1sh due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
@mul1sh due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@gitcoinbot sorry for the silence, i'll wrap up this over the weekend because i'm still working on the signing part for the aragon part.
@sohkai one last confirmation, for the signing part in aragon, should the signing flow be the same as the one for transactions or is their a difference?
@mul1sh the flow should be the same but the information on the signing panel shouldn't necesarily be the same.
@Quazia ok thanks so what info should I show in the signing panel?
@Quazia any help with the above 👆
@mul1sh It should look similar to a directly invocable action, but containing the message you want to sign instead of the transaction:
@sokhai, perfect thanks for the feedback, let me wrap this up then
hey @mul1sh any updates here?
@ryan-shea yes, also working on some final changes for my above PR, I'll push them by the end of this week.
Hey @mul1sh. When will the update be ready?
@vol4tim still working on it, but it will be ready by mid, this week
@mul1sh any updates?
@Schwartz10 sorry been a bit busy again, but I will wrap this over the weekend
@mul1sh if you don't wrap this up over the weekend, we are going to have to take on the ticket ourselves, as it is now a blocker for our work.
@stellarmagnet sure no worries, i've actually resumed working on it now, so i'm confident by latest Sunday i'll be done. Thanks
⚡️ A tip worth 1.15000 ETH (327.34 USD @ $284.64/ETH) has been granted to @mul1sh for this issue from @Quazia. ⚡️
Nice work @mul1sh! Your tip has automatically been deposited in the ETH address we have on file.
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This Bounty has been completed.
Additional Tips for this Bounty:
@Quazia Hmm, I think this is definitely wrong, the bounty should go to @Schwartz10 since he's implementing it.
Some apps may require users to sign arbitrary messages, data, or even transactions. aragon.js should tell its server it has a signing request like this, to prompt it to show an appropriate screen (e.g. aragon/aragon's signer panel).