MevShield

#30

MEV protection mechanisms

Part of Consensus & Finality: Block production, finality, and chain security

Filter by:
announce_next_key call v361 → v393 Changed in v391 #0

Announces the ML-KEM public key that will become the active encryption key in the following block.

Modifies: NextKey, KeyHashByBlock
●●●●○○ Active usage
ValidationMEVSecurity
AuthorKeys storage v391 → v393 New in v391

Per-author ML-KEM-768 encapsulation key, updated each time the author produces a block.

BadEncKeyLen error v391 → v393 New in v391 #0

The announced ML‑KEM encapsulation key length is invalid.

CurrentKey storage v361 → v393

The currently active ML-KEM-768 public key for encrypting MEV-protected transactions.

ValidationMEVSecurity
EncryptedSubmitted event v361 → v393 #0

Emitted when an encrypted transaction wrapper is accepted into the MEV protection queue.

Emitted by: submit_encrypted Modifies: Submissions
●●●○○○ Active usage
ValidationMEVSecurity
HasMigrationRun storage v391 → v393 New in v391

Stores whether some migration has been run.

NextKey storage v361 → v393

The ML-KEM-768 public key that will become CurrentKey in the following block.

Modified by: announce_next_key
●●●●○○ Medium usage
ValidationMEVSecurity
NextKeyExpiresAt storage v391 → v393 New in v391

Block number at which `NextKey` is no longer valid (exclusive upper bound).

PendingKey storage v391 → v393 New in v391

Next block author's key, staged here before promoting to `CurrentKey`.

PendingKeyExpiresAt storage v391 → v393 New in v391

Block number at which `PendingKey` is no longer valid (exclusive upper bound).

submit_encrypted call v361 → v393 Changed in v391 #1

Submits an encrypted transaction wrapper for MEV-protected execution.

Emits: EncryptedSubmitted Modifies: Submissions
●●●●○○ Active usage
SystemMEVSecurity
Unreachable error v391 → v393 New in v391 #1

Unreachable.

Related Pallets