mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Add assignment keys to session keys, no separate approvals key (#2092)
* guide: merge backing and approval keys * bump substrate master & update primitives * use new SessionInfo struct in session_info * session keys upgrade for Polkadot * kusama & westend runtimes * bump westend, kusama, and polkadot versions * add session key to rococo & test-runtime * update prepare-test-net to latest subkey * update chain specs to support new para_assignment session key * get cargo.lock from master * formatting * update kill_storage based on substrate master * fix test-service * assgn -> asgn * use session info module for assignment session key
This commit is contained in:
committed by
GitHub
parent
04e9489da6
commit
15c253117d
@@ -58,19 +58,6 @@ pub use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
|
||||
/// Unique identifier for the Inclusion Inherent
|
||||
pub const INCLUSION_INHERENT_IDENTIFIER: InherentIdentifier = *b"inclusn0";
|
||||
|
||||
|
||||
/// The key type ID for a parachain approval voting key.
|
||||
pub const APPROVAL_KEY_TYPE_ID: KeyTypeId = KeyTypeId(*b"aprv");
|
||||
|
||||
mod approval_app {
|
||||
use application_crypto::{app_crypto, sr25519};
|
||||
app_crypto!(sr25519, super::APPROVAL_KEY_TYPE_ID);
|
||||
}
|
||||
|
||||
/// The public key of a keypair used by a validator for approval voting
|
||||
/// on included parachain candidates.
|
||||
pub type ApprovalId = approval_app::Public;
|
||||
|
||||
/// The key type ID for parachain assignment key.
|
||||
pub const ASSIGNMENT_KEY_TYPE_ID: KeyTypeId = KeyTypeId(*b"asgn");
|
||||
|
||||
@@ -85,7 +72,6 @@ mod assigment_app {
|
||||
/// to approve included parachain candidates.
|
||||
pub type AssignmentId = assigment_app::Public;
|
||||
|
||||
|
||||
/// Get a collator signature payload on a relay-parent, block-data combo.
|
||||
pub fn collator_signature_payload<H: AsRef<[u8]>>(
|
||||
relay_parent: &H,
|
||||
@@ -698,8 +684,8 @@ pub struct SessionInfo {
|
||||
pub validators: Vec<ValidatorId>,
|
||||
/// Validators' authority discovery keys for the session in canonical ordering.
|
||||
pub discovery_keys: Vec<AuthorityDiscoveryId>,
|
||||
/// The assignment and approval keys for validators.
|
||||
pub approval_keys: Vec<(ApprovalId, AssignmentId)>,
|
||||
/// The assignment keys for validators.
|
||||
pub assignment_keys: Vec<AssignmentId>,
|
||||
/// Validators in shuffled ordering - these are the validator groups as produced
|
||||
/// by the `Scheduler` module for the session and are typically referred to by
|
||||
/// `GroupIndex`.
|
||||
|
||||
Reference in New Issue
Block a user