From 0e36dc57956e5d469b4b2939c47ed36f10d7001a Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Fri, 5 Dec 2025 12:48:30 -0500 Subject: [PATCH 1/2] update --- pallets/shield/src/lib.rs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/pallets/shield/src/lib.rs b/pallets/shield/src/lib.rs index 831ea7e0a2..7f6c7ba75e 100644 --- a/pallets/shield/src/lib.rs +++ b/pallets/shield/src/lib.rs @@ -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 /// From 2ce5c6e4e22766dd384e2420ce2ced7fc5f8bf40 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Fri, 5 Dec 2025 12:49:31 -0500 Subject: [PATCH 2/2] bump spec --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 8036969927..340361cf05 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -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,