Skip to content

Conversation

@DenzelPenzel
Copy link
Contributor

@DenzelPenzel DenzelPenzel commented Dec 11, 2025

close #473

  • Added chain_spec_key_types field in NodeConfig and NodeSpec to specify session key types for chain spec injection
  • Added chain_spec_key_types module for parsing key type specifications

@DenzelPenzel DenzelPenzel force-pushed the chain-spec-custom-session-keys branch from c03ba4c to 8eb7b3f Compare December 12, 2025 13:23

pub fn get_default_chain_spec_key_types(is_asset_hub_polkadot: bool) -> Vec<ChainSpecKeyType> {
let predefined_schemes = get_predefined_schemes(is_asset_hub_polkadot);
let default_keys = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can refactor this to convert the resulting HashMap into the Vec directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, right, actually this fn isn’t used in the codebase; I removed it.

Copy link
Collaborator

@pepoviola pepoviola 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, some small comments inline.
Thx!

…sion-keys

# Conflicts:
#	crates/orchestrator/src/generators/chain_spec.rs
#	crates/orchestrator/src/network_spec.rs
@DenzelPenzel DenzelPenzel requested a review from pepoviola January 9, 2026 19:17
@pepoviola pepoviola merged commit a95bdc3 into main Jan 9, 2026
10 checks passed
@pepoviola pepoviola deleted the chain-spec-custom-session-keys branch January 9, 2026 19:24
@pepoviola
Copy link
Collaborator

thanks @DenzelPenzel !!

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.

Allow to customize session keys in chainspec

3 participants