Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions pallets/shield/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,21 +279,12 @@ pub mod pallet {
/// Client‑side:
///
/// 1. Read `NextKey` (ML‑KEM public key bytes) from storage.
/// 2. Compute `key_hash = Hashing::hash(NextKey_bytes)`.
/// 3. Build:
/// 2. Sign your extrinsic so that it can be executed when added to the pool,
/// i.e. you may need to increment the nonce if you submit using the same account.
/// 3. `commitment = Hashing::hash(signed_extrinsic)`.
/// 4. Encrypt:
///
/// raw_payload = signer (32B AccountId)
/// || key_hash (32B Hash)
/// || SCALE(call)
///
/// 4. `commitment = Hashing::hash(raw_payload)`.
/// 5. Signature message:
///
/// "mev-shield:v1" || genesis_hash || raw_payload
///
/// 6. Encrypt:
///
/// plaintext = raw_payload || sig_kind || signature(64B)
/// plaintext = signed_extrinsic
///
/// with ML‑KEM‑768 + XChaCha20‑Poly1305, producing
///
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 358,
spec_version: 359,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Loading