-
Notifications
You must be signed in to change notification settings - Fork 4.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
Can't bundle AfterSignature and ApplySignature instructions in single transaction #1531
Comments
@aeyakovenko, @mvines, comments on the TODOs? @sakridge, once we have the details pinned down, would you mind making the change to sigverify for us? |
@garious that works! Since instruction accounts are just offsets you can mix and match whichever you want. @sakridge can you generalize the interface to the gpu to take a blob of data and arrays of sigs and key and data offsets into the blob? We might need to “type” the signatures eventually. BLS signatures combine the data into one sig to save space |
Regarding the second TODO, I think we only need to add a |
Regarding the first TODO, we're leaning toward signing the same data in every signature and not signing the first signature (or any sort of stacking). That way all signatures can be generated concurrently. |
@mvines it should be doable, let me prioritize this work. |
@sakridge, how's this one looking? Can we plan for it coming in sooner than later or is back on the back burner? |
@sakridge, yes, exactly |
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
With multiple instructions in a TX may need multiple signatures. Fixes #1531
With multiple instructions in a TX may need multiple signatures. Fixes solana-labs#1531
) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.36 to 14.14.37. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ort of #1531) (#1535) * scheduler optimization - worker precompile verification (#1531) (cherry picked from commit 0d34a1a) # Conflicts: # core/src/banking_stage/consumer.rs * resolve conflicts --------- Co-authored-by: Andrew Fitzgerald <[email protected]>
…ort of solana-labs#1531) (solana-labs#1535) * scheduler optimization - worker precompile verification (solana-labs#1531) (cherry picked from commit 0d34a1a) # Conflicts: # core/src/banking_stage/consumer.rs * resolve conflicts --------- Co-authored-by: Andrew Fitzgerald <[email protected]>
Problem:
Can't currently implement multisig in a single transaction.
Proposed solution:
Change Transaction's
signature: Signature
tosignatures: Vec<Signature>
. Sigverify should use the firstsignatures.len()
ofaccount_keys
for the respective pubkeys.TODO: Decide if the signed data should be the same for all signatures, or if all signatures after the first simply sign the first signature. I don't have a strong opinion, but signing the first signature is what Budget's ApplySignature currently expected.
TODO: Does that rule about the first
signatures.len()
keys being signed create any problems? Does it alleviate the need for an instruction to specifysigned_account_keys
?The text was updated successfully, but these errors were encountered: