Skip to content

Commit 2c8157c

Browse files
committed
wip
1 parent 00eacd8 commit 2c8157c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust/rbac-registration/src/cardano/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ pub trait RbacChainsState {
3131
) -> impl Future<Output = anyhow::Result<Option<CatalystId>>> + Send;
3232

3333
/// Returns a corresponding to the RBAC chain's Catalyst ID corresponding by the given
34-
/// public key.
35-
fn chain_catalyst_id_from_public_key(
34+
/// signing public key.
35+
fn chain_catalyst_id_from_signing_pk(
3636
&self,
3737
key: &VerifyingKey,
3838
) -> impl Future<Output = anyhow::Result<Option<CatalystId>>> + Send;

rust/rbac-registration/src/registration/cardano/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ where
731731
{
732732
for role in cip509.all_roles() {
733733
if let Some(key) = cip509.signing_pk_for_role(role) {
734-
if let Some(previous) = state.chain_catalyst_id_from_public_key(&key).await? {
734+
if let Some(previous) = state.chain_catalyst_id_from_signing_pk(&key).await? {
735735
if &previous != cat_id {
736736
cip509.report().functional_validation(
737737
&format!("An update to {cat_id} registration chain uses the same public key ({key:?}) as {previous} chain"),

0 commit comments

Comments
 (0)