Expand description
Sealing of transaction inputs against the validator set’s shared encryption key.
This module is the single definition of the associated-data transcript, so the sealing side (clients and the node’s own submitters) and the unsealing side (the validator) cannot drift. A drift would not fail to compile: it would reject every submission at runtime with an opaque AEAD error, so the transcript is pinned by a golden vector in the tests below.
Structs§
- Next
Encryption KeyInfo - Public metadata for a scheduled transaction encryption key.
- Transaction
Encryption KeyInfo - Public metadata for the transaction encryption key served by a validator.
- Transaction
Inputs Sealer - Seals transaction inputs against the validator set’s shared encryption key.
- Trusted
Transaction Encryption State - Trusted chain state used to verify a served transaction encryption key.
- Verified
Transaction Encryption Key - A transaction encryption key whose attestation matches trusted chain state.
Enums§
- Transaction
Encryption KeyError - Failure to decode or verify a served transaction encryption key.
- Transaction
Encryption Scheme - Encryption schemes supported by transaction input submission.
- Transaction
Input Seal Error - Failure to seal transaction inputs.
Constants§
- ATTESTATION_
DOMAIN - Domain tag prefixed to the validator-signed encryption key payload.
- MAX_
KEY_ ID_ LEN - Upper bound on the length of an encryption key identifier.
- TX_
INPUT_ SEAL_ DOMAIN - Domain tag prefixed to the associated data of sealed transaction inputs.
Functions§
- transaction_
inputs_ associated_ data - Builds the associated data authenticating a sealed set of transaction inputs.
- verify_
transaction_ encryption_ key - Verifies a served transaction encryption key against trusted chain state.