-
Notifications
You must be signed in to change notification settings - Fork 74
SIP-16: Add more tx_context #16
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
Conversation
sips/sip-temporary_title.md
Outdated
|
||
`tx_context::is_signed_by(ctx, address)` return `boolean`. | ||
|
||
`tx_context::signers(ctx)` return `vector<address>`. |
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.
Couple of edge cases to think about here:
- What order does it return the addresses in? I would vote for gas sender last, but it doesn't matter as long as it's clear/consistent
- This should always consist of distinct addresses, right
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.
What order does it return the addresses in?
At SDK, When we run executeTransactionBlock
we pass in signatures as an array. Maybe the order can be the same as the array.
Or just ascending/descending order.
result = await suiClient.executeTransactionBlock({
transactionBlock: sponsorSignedTxBlockBytes,
signature: [sponsorSignature, clientSignature],
options: {
showEffects: true,
showEvents: true,
showObjectChanges: true,
},
});
|
The ability to retrieve the signer (or signers) is something we have been looking for as well!
I assume a flow like this would get their job done:
|
Thank you, that is a good example |
I would probably name the "gas_sender" function "gas_owner" instead, but otherwise, the new list of APIs sounds reasonable to me. |
Agreed, |
Is there a scenario where multiple signers, aside from the |
Yes if we use multisig feature: https://docs.sui.io/concepts/cryptography/transaction-auth/multisig |
Note that even with multisig, there is still one sender address which is the combined address. |
Thanks for your SIP proposal. In order to process the SIP, the SIP Editor requires write access to the forked repository in order to change the status and add additional information. Could you please grant write access on the forked repository to the following GitHub accounts? SA124 Once this has been completed, we can move the proposal forward. Best regards, |
Invite sent. |
Yes, this is what I meant. Even if we can obtain the list of signers, the sender and the signers could be different. The sender isn't necessarily a signer, although currently, we treat the sender as a signer. |
Just as a quick update, we plan on adding |
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.
Looks good. Moving to Review status.
Hi, want to know the follow up about this. |
Status changed to Stagnant due to inactivity. The SIP can be revived at a later date. |
I would like to ask if you can add a signature, such as zklogin for a special identity |
SIP withdrawn due to delay. A new SIP can be resubmitted in the future. |
What would be needed to land this SIP ? @wriches what do you mean by delay ? |
@EasonC13 maybe you could re-submit the SIP ? |
No description provided.