Skip to content

impl Header and Hasher for some substrate types behind the "substrate-compat" feature flag#934

Merged
jsdw merged 2 commits intomasterfrom
tadeo-hepperle-substrate-hasher-and-header-traits
Apr 27, 2023
Merged

impl Header and Hasher for some substrate types behind the "substrate-compat" feature flag#934
jsdw merged 2 commits intomasterfrom
tadeo-hepperle-substrate-hasher-and-header-traits

Conversation

@tadeohepperle
Copy link
Contributor

@tadeohepperle tadeohepperle commented Apr 26, 2023

fixes #835.

This PR I implements subxts Hasher trait for:

  • sp_core::Blake2Hasher
  • sp_core::KeccakHasher

and subxts Header trait for:

  • sp_runtime::generic::Header

I don't know if there are other types for which I should implement the traits as well, please let me know.

@tadeohepperle tadeohepperle requested a review from a team as a code owner April 26, 2023 17:17
Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I'm not sure whether we've covered everything, but looks good offhand and if people run into issues then we can add more impls or whatever :)

Copy link
Collaborator

@lexnv lexnv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

@jsdw jsdw merged commit b7c5d76 into master Apr 27, 2023
@jsdw jsdw deleted the tadeo-hepperle-substrate-hasher-and-header-traits branch April 27, 2023 15:00
@jsdw jsdw mentioned this pull request Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement config::Header and config::Hasher on the Substrate Header/Hasher types that we used to use in SubstrateConfig

4 participants