Skip to content

Commit d3e0f06

Browse files
bkchrggwpezjoepetrowskiliamaharonkianenigma
authored andcommitted
Implement CheckMetadataHash extension (paritytech#4274) (paritytech#4619)
This implements the `CheckMetadataHash` extension as described in [RFC78](https://polkadot-fellows.github.io/RFCs/approved/0078-merkleized-metadata.html). Besides the signed extension, the `substrate-wasm-builder` is extended to support generating the metadata-hash. Closes: paritytech#291 --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
1 parent 84762bb commit d3e0f06

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

prdoc/pr_4274.prdoc

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
title: Introduce `CheckMetadataHash` signed extension
2+
3+
doc:
4+
- audience: Runtime Dev
5+
description: |
6+
Introduces the new `CheckMetadataHash` signed extension. This extension can be added to a
7+
runtime to support verifying the metadata hash as described in
8+
[RFC78](https://polkadot-fellows.github.io/RFCs/approved/0078-merkleized-metadata.html).
9+
This removes the requirement for having a metadata portal and in general a centralized
10+
authentication of the metadata. With this signed extension the runtime is able to verify
11+
that the metadata used by the wallet was correct. This is mainly useful for offline wallets
12+
which users need to trust any way, not that useful for online wallets.
13+
14+
There is a guide `generate_metadata_hash` for how to integrate this into a runtime that
15+
should make it quite easy to integrate the signed extension.
16+
- audience: Runtime User
17+
description: |
18+
This brings support for the new Ledger app and similar hardware wallets. These hardware
19+
wallets will be able to decode the transaction using the metadata. The runtime will
20+
ensure that the metadata used for this decoding process is correct and that the online
21+
wallet did not tried to trick you.
22+
23+
crates:
24+
- name: substrate-wasm-builder
25+
bump: minor
26+
- name: sc-executor-wasmtime
27+
bump: patch
28+
- name: frame-metadata-hash-extension
29+
bump: major
30+
- name: polkadot-service
31+
bump: none
32+
- name: rococo-runtime
33+
bump: major
34+
- name: westend-runtime
35+
bump: major
36+
- name: asset-hub-rococo-runtime
37+
bump: major
38+
- name: asset-hub-westend-runtime
39+
bump: major

0 commit comments

Comments
 (0)