Skip to content

Commit 780bd7a

Browse files
authored
Merge pull request #2261 from opentensor/fix/docs/update-mev-shield-doc-string
[docs] update mev shield submit doc string
2 parents 5147b04 + 2ce5c6e commit 780bd7a

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

pallets/shield/src/lib.rs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -279,21 +279,12 @@ pub mod pallet {
279279
/// Client‑side:
280280
///
281281
/// 1. Read `NextKey` (ML‑KEM public key bytes) from storage.
282-
/// 2. Compute `key_hash = Hashing::hash(NextKey_bytes)`.
283-
/// 3. Build:
282+
/// 2. Sign your extrinsic so that it can be executed when added to the pool,
283+
/// i.e. you may need to increment the nonce if you submit using the same account.
284+
/// 3. `commitment = Hashing::hash(signed_extrinsic)`.
285+
/// 4. Encrypt:
284286
///
285-
/// raw_payload = signer (32B AccountId)
286-
/// || key_hash (32B Hash)
287-
/// || SCALE(call)
288-
///
289-
/// 4. `commitment = Hashing::hash(raw_payload)`.
290-
/// 5. Signature message:
291-
///
292-
/// "mev-shield:v1" || genesis_hash || raw_payload
293-
///
294-
/// 6. Encrypt:
295-
///
296-
/// plaintext = raw_payload || sig_kind || signature(64B)
287+
/// plaintext = signed_extrinsic
297288
///
298289
/// with ML‑KEM‑768 + XChaCha20‑Poly1305, producing
299290
///

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
237237
// `spec_version`, and `authoring_version` are the same between Wasm and native.
238238
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
239239
// the compatible custom types.
240-
spec_version: 358,
240+
spec_version: 359,
241241
impl_version: 1,
242242
apis: RUNTIME_API_VERSIONS,
243243
transaction_version: 1,

0 commit comments

Comments
 (0)