Skip to content

Commit 6eb47b4

Browse files
Add the purpose getter function to Cip509
1 parent c777f93 commit 6eb47b4

File tree

1 file changed

+6
-0
lines changed
  • rust/rbac-registration/src/cardano/cip509

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ impl Cip509 {
204204
self.metadata.as_ref().and_then(|m| m.role_data.get(&role))
205205
}
206206

207+
/// Returns a purpose of this registration.
208+
#[must_use]
209+
pub fn purpose(&self) -> Option<UuidV4> {
210+
self.purpose
211+
}
212+
207213
/// Returns a hash of the previous transaction.
208214
#[must_use]
209215
pub fn previous_transaction(&self) -> Option<Blake2b256Hash> {

0 commit comments

Comments
 (0)