Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARC-63 Delegated multisig-account #303
base: main
Are you sure you want to change the base?
ARC-63 Delegated multisig-account #303
Changes from 9 commits
e771398
4d08e6e
0cfc5e6
921511b
ae05b6c
0c6dc12
5b14218
1e1fd0c
a26ca7a
16418d8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, to be even more strict, we could also add this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is creating a signature based on the logic signature program right? Aka producing a delegate signature for the newly generated account from step 1.
Is it worth using the Algorand SDK (
LogicSigAccount(program).sign(secret_key)
) in this example instead of directly using nacl? I suspect it would be clearer to our demographic.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my understanding, this
(LogicSigAccount(program).sign(secret_key))
method does not return the public signaturedef sign(self, private_key: str) -> None:
, it will instead store it inside an lsig object like this:lsig = transaction.LogicSigAccount(program)
.sign(secret_key)But to extract the public signature, we shoud do the following:
plug_in_public_sig = lsig.lsig.sig
It works but it seems a bit more "magical"
But you are right, I will add it for reference, so it is easier to follow what I am doing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand this section. The msig account hasn't been rekeyed to the application, so how does the application control the multisig vault at this point? All it has is a list of addresses to signatures, which haven't been verified to be accurate, presumably because it's an early design? Or have I misunderstood it, and this application is just there to provide a mapping service between address and signature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the signature
plug_in_public_sig
of theplug_in_addr
that is now stored on the app thanks to theset_public_sig()
method, anyone can get this value by looking at the box/ calling theget_public_sig()
method.