-
Notifications
You must be signed in to change notification settings - Fork 1
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
Profile snapshot id payload #214
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## fixes #214 +/- ##
=======================================
- Coverage 97.4% 97.4% -0.1%
=======================================
Files 941 942 +1
Lines 15077 15105 +28
Branches 70 70
=======================================
+ Hits 14700 14727 +27
- Misses 367 368 +1
Partials 10 10
Flags with carried forward coverage won't be shown. Click here to find out more.
|
jvm/sargon-android/src/test/java/com/radixdlt/sargon/SecureStorageKeyTest.kt
Outdated
Show resolved
Hide resolved
crates/sargon/src/system/drivers/secure_storage_driver/support/secure_storage_key.rs
Outdated
Show resolved
Hide resolved
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.
left some minor remark
* wip * wip * fix test * wip * fix ios tests * test * update * wip
* wip * wip * fix test * wip * fix ios tests * test * update * wip
* Replace kotlin base64 with android base 64 and mock it in unit tests * Make profileStateChanges a shared flow * Remove planting of debug tree * Print errors with timber in example app too * Fix example profile states * Remove checks before asking for biometrics * Suspend request for biometrics until activity is at least started * Report secure storage access error * Make read and write methods public * Make encrypt and decrypt methods public * Implement function to remove a list of keyspecs * Make generateSecretKey public for now * Add error kind for biometrics failure * Export method to derive profile based on bdfs and some accounts * Emit derived profile in profile state change * Store profile state into android state change driver * Make reset keyspec method to regenerate a new key when fail * Included SargonOsManager into sargon android * Make drivers explicit * Replace with new_wallet_with_derived_bdfs * Change doc * Allow set profile to set one profile when none exists * Change iOS test * Fix android test * Fix set_profile to notify ProfileStateChange client about the latest mutated profile * Fix content hint to report correct total amount of personas * Create initial profile with no networks * Delete ephemeral profile when booting * Return error when network does not yet exist * Profile snapshot id payload (#214) * wip * wip * fix test * wip * fix ios tests * test * update * wip * Bump cargo version * Profile safe concurrent access (#225) * wip * fix * fix * wip * wip * wip --------- Co-authored-by: Ghenadie <[email protected]>
Add the profile id as part of ProfileSnapshot secure storage key. This is needed so the iOS wallet has the profile id when needing to save the profile data. It is meant to be ignored for other usages.