Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rust/rbac-registration): refactoring #127

Merged
merged 94 commits into from
Jan 24, 2025

Conversation

stanislav-tkach
Copy link
Member

@stanislav-tkach stanislav-tkach commented Dec 30, 2024

Description

  • The Cip0134UriSet type was added.
  • Option<Vec<_>> fields of the Cip509RbacMetadata structure were changed to Vec<_>.
  • Error handling becomes stricter.
  • Store x509 certificates (Cip509RbacMetadata::x509_certs) in the decoded format.
  • Store certificate URIs in the registration chain.
  • Use types from the cardano-blockchain-types crate.

Related Issue(s)

Closes #104.

Related Pull Requests

This is a combination of the following pull requests:

Please confirm the following checks

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream module

@stanislav-tkach stanislav-tkach self-assigned this Dec 30, 2024
@stanislav-tkach stanislav-tkach changed the title feat(rust/rbac-registration): feat(rust/rbac-registration): refactoring Dec 30, 2024
Copy link
Contributor

github-actions bot commented Dec 30, 2024

Test Report | ${\color{lightgreen}Pass: 230/230}$ | ${\color{red}Fail: 0/230}$ |

@stanislav-tkach stanislav-tkach marked this pull request as ready for review January 2, 2025 09:49
bkioshn
bkioshn previously approved these changes Jan 3, 2025
Copy link
Contributor

@bkioshn bkioshn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌈

rust/rbac-registration/src/cardano/cip509/mod.rs Outdated Show resolved Hide resolved
rust/rbac-registration/src/cardano/cip509/mod.rs Outdated Show resolved Hide resolved
rust/rbac-registration/src/cardano/cip509/mod.rs Outdated Show resolved Hide resolved
rust/rbac-registration/src/cardano/cip509/mod.rs Outdated Show resolved Hide resolved
rust/rbac-registration/src/cardano/cip509/mod.rs Outdated Show resolved Hide resolved
rust/rbac-registration/src/cardano/cip509/rbac/mod.rs Outdated Show resolved Hide resolved
rust/rbac-registration/src/cardano/cip509/mod.rs Outdated Show resolved Hide resolved
rust/rbac-registration/src/cardano/cip509/validation.rs Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Jan 3, 2025

Test Report | ${\color{lightgreen}Pass: 256/256}$ | ${\color{red}Fail: 0/256}$ |

Copy link
Contributor

github-actions bot commented Jan 3, 2025

Test Report | ${\color{lightgreen}Pass: 256/256}$ | ${\color{red}Fail: 0/256}$ |

@stanislav-tkach stanislav-tkach force-pushed the rbac-registration-improvements branch from 5fad6f6 to a5af8a8 Compare January 3, 2025 23:46
@stanislav-tkach stanislav-tkach marked this pull request as draft January 4, 2025 11:40
bkioshn and others added 2 commits January 24, 2025 11:53
* test(rbac-registration): fix test and test data

Signed-off-by: bkioshn <[email protected]>

* fix(rbac-registration): name txn_index

Signed-off-by: bkioshn <[email protected]>

* fix(rbac-registration): add more test to registration chain

Signed-off-by: bkioshn <[email protected]>

* test(rbac-registration): fix conway4 block

Signed-off-by: bkioshn <[email protected]>

* test(rbac-registration): fix conway4 block

Signed-off-by: bkioshn <[email protected]>

* fix(rbac-registration): consume undefined cbor

Signed-off-by: bkioshn <[email protected]>

* fix(rbac-registration): format

Signed-off-by: bkioshn <[email protected]>

* test(rbac-registration): fix conway1 and 4 test data

Signed-off-by: bkioshn <[email protected]>

---------

Signed-off-by: bkioshn <[email protected]>
Copy link
Contributor

Test Report | ${\color{lightgreen}Pass: 271/271}$ | ${\color{red}Fail: 0/271}$ |

Copy link
Contributor

@Mr-Leshiy Mr-Leshiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stanislav-tkach stanislav-tkach removed the do not merge yet PR is not ready to merge yet label Jan 24, 2025
Copy link
Contributor

Test Report | ${\color{lightgreen}Pass: 271/271}$ | ${\color{red}Fail: 0/271}$ |

Copy link
Contributor

Test Report | ${\color{lightgreen}Pass: 271/271}$ | ${\color{red}Fail: 0/271}$ |

Copy link
Contributor

Test Report | ${\color{lightgreen}Pass: 272/272}$ | ${\color{red}Fail: 0/272}$ |

@stanislav-tkach stanislav-tkach merged commit ffe23e3 into main Jan 24, 2025
20 of 22 checks passed
@stanislav-tkach stanislav-tkach deleted the rbac-registration-improvements branch January 24, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review me PR is ready for review
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

🛠️ [TASK] : Create a type representing a list of CIP-0134 URIs
4 participants