Skip to content

Add stateless signer program#7

Open
grod220 wants to merge 1 commit into
mainfrom
executor-pt-1
Open

Add stateless signer program#7
grod220 wants to merge 1 commit into
mainfrom
executor-pt-1

Conversation

@grod220

@grod220 grod220 commented Jun 11, 2026

Copy link
Copy Markdown
Member

Implements the first step of the executor-model decomposition proposed in #4. This new program has a single ix Submit which simply verifies authority ed25519 signatures over an opaque payload, then CPIs the executor program the payload names, promoting each authority's ProgrammaticSigner PDA to a signer.

The executor program (in the next PR) is responsible for nonce advancing, parsing the message bytes, and replaying the instructions.

This new signer program is simple and stateless, so the objective is to make this immutable.

Comment thread client/src/instruction.rs Outdated
solana_instruction::{AccountMeta, Instruction},
solana_sdk_ids::sysvar::slot_hashes,
spl_ed25519_programmatic_signer_interface::instruction::ProgrammaticSignerInstruction,
spl_ed25519_programmatic_signer_legacy_interface::instruction::ProgrammaticSignerInstruction,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping this old crates here until I can get Initialize code moved to the new program in the next PR

Comment thread Cargo.toml
Comment on lines +43 to +44
# TODO: pinned to mollusk's `4.1-beta` branch for a friendlier dep graph resolution w/ the new no-std crates
mollusk-svm = { git = "https://github.com/anza-xyz/mollusk", branch = "4.1-beta" }

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found this to solve all of my no-std crate issues given the latest updates. Think acceptable for now and can go back to stable mollusk version when ready.

@grod220 grod220 force-pushed the executor-pt-1 branch 2 times, most recently from 534687c to b4dabef Compare June 11, 2026 10:43
Comment on lines +27 to +32
/// Trust assumptions:
/// - This program guarantees only that the authorities signed the payload. What the
/// payload does is entirely up to the executor it names.
/// - Signatures cover only the payload, never the accounts. The executor must validate them
/// against its instruction data.
/// - This program is stateless. Replay protection belongs to the executor.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important change in this design

@grod220 grod220 requested review from joncinque and t-nelson June 11, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant