Skip to content

Commit

Permalink
Merge pull request #1203 from PolymathNetwork/testnet
Browse files Browse the repository at this point in the history
Merge Testnet to Mainnet
  • Loading branch information
adamdossa authored Jan 19, 2022
2 parents c16169a + ced8e15 commit b62dc44
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions pallets/identity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,25 +318,6 @@ decl_module! {
Self::accept_primary_key_rotation(origin, rotation_auth_id, optional_cdd_auth_id)
}

/// Call this with the new primary key. By invoking this method, caller accepts authorization
/// to become the new primary key of the issuing identity. If a CDD service provider approved
/// this change, (or this is not required), primary key of the DID is updated.
///
/// The caller (new primary key) must be either a secondary key of the issuing identity, or
/// unlinked to any identity.
///
/// Differs from accept_primary_key in that it will leave the old primary key as a secondary
/// key with the permissions specified in the corresponding RotatePrimaryKeyToSecondary authorization
/// instead of unlinking the old primary key.
///
/// # Arguments
/// * `owner_auth_id` Authorization from the owner who initiated the change
/// * `cdd_auth_id` Authorization from a CDD service provider
#[weight = <T as Config>::WeightInfo::rotate_primary_key_to_secondary()]
pub fn rotate_primary_key_to_secondary(origin, auth_id:u64, optional_cdd_auth_id: Option<u64>) -> DispatchResult {
Self::base_rotate_primary_key_to_secondary(origin, auth_id, optional_cdd_auth_id)
}

/// Set if CDD authorization is required for updating primary key of an identity.
/// Callable via root (governance)
///
Expand Down Expand Up @@ -533,6 +514,25 @@ decl_module! {
let issuer = Self::ensure_perms(origin)?;
Self::base_revoke_claim(target, claim_type, issuer, scope)
}

/// Call this with the new primary key. By invoking this method, caller accepts authorization
/// to become the new primary key of the issuing identity. If a CDD service provider approved
/// this change, (or this is not required), primary key of the DID is updated.
///
/// The caller (new primary key) must be either a secondary key of the issuing identity, or
/// unlinked to any identity.
///
/// Differs from accept_primary_key in that it will leave the old primary key as a secondary
/// key with the permissions specified in the corresponding RotatePrimaryKeyToSecondary authorization
/// instead of unlinking the old primary key.
///
/// # Arguments
/// * `owner_auth_id` Authorization from the owner who initiated the change
/// * `cdd_auth_id` Authorization from a CDD service provider
#[weight = <T as Config>::WeightInfo::rotate_primary_key_to_secondary()]
pub fn rotate_primary_key_to_secondary(origin, auth_id:u64, optional_cdd_auth_id: Option<u64>) -> DispatchResult {
Self::base_rotate_primary_key_to_secondary(origin, auth_id, optional_cdd_auth_id)
}
}
}

Expand Down

0 comments on commit b62dc44

Please sign in to comment.