-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
api: Use serialized signature for execute_transaction endpoint #7185
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
should we rename |
d27ae1d
to
811c011
Compare
renaming API is dangerous here since we have to ensure a deployment of wallet does not happen before sui deploy, because otherwise the current version of wallet calls into the |
811c011
to
95bc1ce
Compare
95bc1ce
to
02ec563
Compare
So I was thinking we change |
02ec563
to
75909a7
Compare
i see what you mean, this works! revised. i will have wallet still points to |
What
Make
sui_executeTransaction
API the same assui_executeTransactionSerializedSig
.This
sui_executeTransaction
now requires the client to be responsible to serializeflag || signature || pubkey
in one field and submit in thesignature
field. Instead of sending three separate fields previously (scheme, pubkey, signature).Why
This simplifies future use cases for multisig and multi agent execute transaction.
How to use
In Rust:
In CLI: See usage of
sui keytool sign
.In Typescript:
How to Prepare Ahead of Time
You can switch to
sui_executeTransactionSerializedSig
(https://docs.sui.io/sui-jsonrpc#sui_executeTransactionSerializedSig) now to test the serialization in the current deployed Sui. After this commit is release, you can switch back tosui_executeTransaction
anytime with the same param.Also fixed some ergonomics and bugs of keytool and offline signing docs.