Skip to content

Store sealed transaction inputs after validation - #2390

Merged
huitseeker merged 7 commits into
corrected-pr2381-encrypted-submissionfrom
issue-2385-store-validated-sealed-inputs
Jul 29, 2026
Merged

Store sealed transaction inputs after validation#2390
huitseeker merged 7 commits into
corrected-pr2381-encrypted-submissionfrom
issue-2385-store-validated-sealed-inputs

Conversation

@huitseeker

@huitseeker huitseeker commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This completes Phase 1 by storing the exact sealed transaction inputs accepted by the validator. The validator writes the record only after proof checks, reexecution, and header checks pass. Rejected submissions do not change the database, and a duplicate transaction keeps its first ciphertext.

This record is temporary. Phase 2 will replace it with data encrypted under the validators' threshold key. Anyone with the shared submission secret can decrypt the Phase 1 record, so the validator and any remote prover must run within the trusted TEE boundary.

Existing validator databases must be set up again because old rows do not contain the client ciphertext.

Closes #2385.

Changelog

[[entry]]
scope = "validator"
impact = "changed"
description = "The validator stores sealed transaction inputs only after all validation checks pass."

[[entry]]
scope = "validator"
impact = "migration"
description = "Existing validator databases must be set up again for the new validated transaction record."

@huitseeker
huitseeker force-pushed the issue-2385-store-validated-sealed-inputs branch from cb1104c to a93a4e2 Compare July 28, 2026 16:37
@huitseeker
huitseeker force-pushed the issue-2385-store-validated-sealed-inputs branch from a93a4e2 to 65c18ab Compare July 28, 2026 19:31
Comment thread bin/validator/src/db/migrations/002_store_sealed_transaction_inputs.sql Outdated
Comment thread bin/validator/src/db/mod.rs Outdated

@kkovaacs kkovaacs left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@huitseeker
huitseeker force-pushed the issue-2385-store-validated-sealed-inputs branch from 65c18ab to 584a1ee Compare July 29, 2026 12:07
@huitseeker
huitseeker force-pushed the issue-2385-store-validated-sealed-inputs branch from fda703a to af97c9b Compare July 29, 2026 16:58
@huitseeker
huitseeker merged commit 83c2714 into next Jul 29, 2026
28 checks passed
@huitseeker
huitseeker deleted the issue-2385-store-validated-sealed-inputs branch July 29, 2026 18:29
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.

Store validated sealed transaction inputs

3 participants