Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
joncinque
left a comment
There was a problem hiding this comment.
Looks great to me! @mcintyre94 can you double-check to make sure the CLI commands are correct and make sense?
| |-------------------------|------------------------------------------------| | ||
| | Ed25519 Signer | `EdSigVfK1DkeMrjFNDMjwfQaJPhPTtX7jW8uPv3oKEgN` | | ||
| | Legacy Message Executor | `ExecxgyHYsAXB4c5dZodV1zJZ9hqfsDCYkRDRATrpkFR` | | ||
| | Message Executor | `ExecxgyHYsAXB4c5dZodV1zJZ9hqfsDCYkRDRATrpkFR` | |
There was a problem hiding this comment.
Doesn't really matter, but the table is off here
| | Message Executor | `ExecxgyHYsAXB4c5dZodV1zJZ9hqfsDCYkRDRATrpkFR` | | |
| | Message Executor | `ExecxgyHYsAXB4c5dZodV1zJZ9hqfsDCYkRDRATrpkFR` | |
| ```sh | ||
| spl-programmatic-signer transaction simulate "$EXECUTION_MESSAGE" "$NONCE_ACCOUNT" \ | ||
| --strip-transaction-config \ | ||
| --change-for-authority "$AUTHORITY" \ |
There was a problem hiding this comment.
Might be good to document this parameter
There was a problem hiding this comment.
This param was renamed --signing-pubkey in solana-program/ed25519-programmatic-signer#122
It's also no longer necessary in most cases, we now automatically derive the programmatic signer of each account in the transaction to use for labelling. So this param is now additive, only needed if you want to label the programmatic signer of an account that isn't on the transaction.
There was a problem hiding this comment.
Oh nice, will drop it then
| This works because the authority signs a message that the program checks, so nothing expires with a blockhash. The program then acts through a PDA derived from the authority's key. That PDA holds the funds and serves as the authority for token, stake, and other accounts. | ||
|
|
||
| This offers an alternative to _Durable Nonces_, whose deprecation and removal are planned through SIMD-XXXX (forthcoming). | ||
| This offers an alternative to _Durable Nonces_, whose removal is proposed in [SIMD-0723](https://github.com/solana-foundation/solana-improvement-documents/pull/723). |
| ```sh | ||
| spl-programmatic-signer transaction simulate "$EXECUTION_MESSAGE" "$NONCE_ACCOUNT" \ | ||
| --strip-transaction-config \ | ||
| --change-for-authority "$AUTHORITY" \ |
There was a problem hiding this comment.
This param was renamed --signing-pubkey in solana-program/ed25519-programmatic-signer#122
It's also no longer necessary in most cases, we now automatically derive the programmatic signer of each account in the transaction to use for labelling. So this param is now additive, only needed if you want to label the programmatic signer of an account that isn't on the transaction.
|
Other than the comment on simulate, these CLI commands LGTM! Something not mentioned is the cold signing with |
grod220
left a comment
There was a problem hiding this comment.
Something not mentioned is the cold signing with --relay-signature for transaction submit. This is essential for migration
Will do, but migration page was untouched in this PR, so saving this for later.
| ```sh | ||
| spl-programmatic-signer transaction simulate "$EXECUTION_MESSAGE" "$NONCE_ACCOUNT" \ | ||
| --strip-transaction-config \ | ||
| --change-for-authority "$AUTHORITY" \ |
There was a problem hiding this comment.
Oh nice, will drop it then
Updates a variety of outdated things like v1 messaging, derivation, CLI flags, etc.
Part 1 of a few waves of updates with the docs.