Skip to content

Commit ebcbf32

Browse files
committed
wip
1 parent b5830c0 commit ebcbf32

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

rust/rbac-registration/src/cardano/cip509/utils/cip134_uri_set.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct Cip0134UriSetInner {
3939
x_uris: UrisMap,
4040
/// URIs from c509 certificates.
4141
c_uris: UrisMap,
42-
/// URIs which are taken by another certificates.
42+
/// URIs which are taken by another chains.
4343
taken: HashSet<Cip0134Uri>,
4444
}
4545

@@ -221,7 +221,7 @@ impl Cip0134UriSet {
221221
/// Return the updated URIs set where the provided URIs were taken by other
222222
/// registration chains.
223223
///
224-
/// Updates the current URI set by removing the taken URIs from it.
224+
/// Updates the current URI set by marking URIs as taken.
225225
#[must_use]
226226
pub fn update_taken_uris(
227227
self,

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
use std::future::Future;
55

6-
use cardano_blockchain_types::{hashes::TransactionId, StakeAddress};
6+
use cardano_blockchain_types::StakeAddress;
77
use catalyst_types::catalyst_id::CatalystId;
88
use ed25519_dalek::VerifyingKey;
99

@@ -37,15 +37,8 @@ pub trait RBACState {
3737
key: &VerifyingKey,
3838
) -> impl Future<Output = anyhow::Result<Option<CatalystId>>> + Send;
3939

40-
/// Returns a corresponding to the RBAC chain's Catalyst ID corresponding by the given
41-
/// transaction hash.
42-
fn chain_catalyst_id_from_txn_id(
43-
&self,
44-
txn_id: &TransactionId,
45-
) -> impl Future<Output = anyhow::Result<Option<CatalystId>>> + Send;
46-
47-
/// Update the update by "taking" the given `StakeAddress` for the corresponding RBAC
48-
/// chain's by the given `CatalystId`.
40+
/// Update the chain by "taking" the given `StakeAddress` for the corresponding
41+
/// RBAC chain's by the given `CatalystId`.
4942
fn take_stake_address_from_chain(
5043
&mut self,
5144
id: &CatalystId,

0 commit comments

Comments
 (0)