-
Notifications
You must be signed in to change notification settings - Fork 83
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
Profiles refactoring #785
Profiles refactoring #785
Conversation
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
77b5469
to
c4d9a7a
Compare
Codecov Report
@@ Coverage Diff @@
## main #785 +/- ##
==========================================
- Coverage 54.66% 54.66% -0.01%
==========================================
Files 381 381
Lines 36858 36852 -6
Branches 8123 8136 +13
==========================================
- Hits 20150 20144 -6
- Misses 10706 10710 +4
+ Partials 6002 5998 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice refactor, will make profiles cleaner to use!
Looks good.
If you wanna take it another step, you could now change the signature of the Profile trait params to &self rather than Arc. And then consequently, you could remove ALOT of Arc::clones of the Profile around the entire codebase.
* Minor refactoring around profiles Signed-off-by: Patrik Stas <patrik.stas@absa.africa> * Inject BaseWallet instead of Profile into IndyCredxAnonCreds Signed-off-by: Patrik Stas <patrik.stas@absa.africa> * Refactor ModularLibsProfile Signed-off-by: Patrik Stas <patrik.stas@absa.africa> * cargo fmt Signed-off-by: Patrik Stas <patrik.stas@absa.africa> * Refactor IndyProfile Signed-off-by: Patrik Stas <patrik.stas@absa.africa> * Rename IndysdkProfile to VdrtoolsProfile Signed-off-by: Patrik Stas <patrik.stas@absa.africa> * Fix test compile err Signed-off-by: Patrik Stas <patrik.stas@absa.africa> --------- Signed-off-by: Patrik Stas <patrik.stas@absa.africa> Signed-off-by: Andy Waine <88730354+Andy-Waine@users.noreply.github.com>
renamed
modular_wallet_profile
tomodular_libs_profile
- it seem confusing to mention "wallet" while the profile encapsulates also credex, ledger clientModified
IndyVdrLedger
to store require and store minimal amount of information needed - it doesn't need entire profile, it doesn't need to know about exists of Profiles, it only needsdyn BaseWallet
for transaction signingSimilarly modified vdr-tools trait implementations to be unaware of
Profile
, but injectwallet_handle
,pool_handle
in them instead