referrerpolicy=no-referrer-when-downgrade

aura_id_from_chain_spec_id

Function aura_id_from_chain_spec_id 

Source
pub fn aura_id_from_chain_spec_id(id: &str) -> AuraConsensusId
Expand description

Determines the appropriate Aura consensus ID based on the chain spec ID.

Most parachains use Sr25519 for Aura consensus, but Asset Hub Polkadot (formerly Statemint) uses Ed25519.

§Returns

Returns AuraConsensusId::Ed25519 for chain spec IDs starting with asset-hub-polkadot or statemint, and AuraConsensusId::Sr25519 for all other chains.