Skip to content

Commit 00eacd8

Browse files
committed
wip
1 parent 3981765 commit 00eacd8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use ed25519_dalek::VerifyingKey;
1010
use crate::registration::cardano::RegistrationChain;
1111

1212
/// RBAC chains state trait
13-
pub trait RBACState {
13+
pub trait RbacChainsState {
1414
/// Returns RBAC chain for the given Catalyst ID.
1515
fn chain(
1616
&self,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::cardano::{
2727
CertKeyHash, CertOrPk, Cip0134UriSet, Cip509, PaymentHistory, PointData, PointTxnIdx,
2828
RoleData, RoleDataRecord, ValidationSignature,
2929
},
30-
state::RBACState,
30+
state::RbacChainsState,
3131
};
3232

3333
/// Registration chains.
@@ -52,7 +52,7 @@ impl RegistrationChain {
5252
state: &mut State,
5353
) -> anyhow::Result<Option<Self>>
5454
where
55-
State: RBACState,
55+
State: RbacChainsState,
5656
{
5757
let Some(new_chain) = Self::new_stateless(cip509) else {
5858
return Ok(None);
@@ -107,7 +107,7 @@ impl RegistrationChain {
107107
state: &State,
108108
) -> anyhow::Result<Option<Self>>
109109
where
110-
State: RBACState,
110+
State: RbacChainsState,
111111
{
112112
let Some(new_chain) = self.update_stateless(cip509) else {
113113
return Ok(None);
@@ -727,7 +727,7 @@ async fn check_signing_pk<State>(
727727
state: &State,
728728
) -> anyhow::Result<()>
729729
where
730-
State: RBACState,
730+
State: RbacChainsState,
731731
{
732732
for role in cip509.all_roles() {
733733
if let Some(key) = cip509.signing_pk_for_role(role) {

0 commit comments

Comments
 (0)