Skip to content

Feat/check metadata hash extension#684

Closed
camfairchild wants to merge 13 commits intomainfrom
feat/check-metadata-hash-extension
Closed

Feat/check metadata hash extension#684
camfairchild wants to merge 13 commits intomainfrom
feat/check-metadata-hash-extension

Conversation

@camfairchild
Copy link
Contributor

@camfairchild camfairchild commented Jul 24, 2024

Description

Upgrades to polkadot-sdk v1.10.0-rc3 which supports frame_metadata_hash_extension::CheckMetadataHash, required for Zondax's generic-substrate Ledger app.

Related Issue(s)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe): requires new build flags for production (to generate metadata hash for wasm)

Breaking Change

This PR introduces the Check Metadata Hash runtime extension which adds an extra Mode bit to all extrinsics.
This indicates whether the chain node should verify the runtime hash provided in the extrinsic (used for secure signing). Therefore, this change breaks any current wallet clients that don't already support the extra bit (e.g. btcli).

New minimum PySubstrate version: https://github.com/polkascan/py-substrate-interface/releases/tag/v1.7.9
Implemented in: opentensor/bittensor#2156

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have run cargo fmt and cargo clippy to ensure my code is formatted and linted correctly
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@distributedstatemachine
Copy link
Collaborator

closing. will make it to main in current devnet push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devnet-pass PR has been tested on devnet testnet-pass PR was successfully tested on testnet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate Ledger support

3 participants