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

Profile snapshot id payload #214

Merged
merged 8 commits into from
Sep 19, 2024
Merged

Profile snapshot id payload #214

merged 8 commits into from
Sep 19, 2024

Conversation

GhenadieVP
Copy link
Contributor

@GhenadieVP GhenadieVP commented Sep 17, 2024

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.

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

Attention: Patch coverage is 93.33333% with 3 lines in your changes missing coverage. Please review.

Project coverage is 97.4%. Comparing base (6512769) to head (1c120f0).
Report is 1 commits behind head on fixes.

Files with missing lines Patch % Lines
...on/src/profile/v100/header/profile_id_uniffi_fn.rs 80.0% 1 Missing ⚠️
...ent/secure_storage_client/secure_storage_client.rs 90.0% 1 Missing ⚠️
...ecure_storage_driver/support/secure_storage_key.rs 95.4% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           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             
Flag Coverage Δ
kotlin 98.5% <ø> (-0.1%) ⬇️
rust 97.0% <92.5%> (-0.1%) ⬇️
swift 99.4% <100.0%> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...urces/Sargon/SargonOS/SargonOS+Static+Shared.swift 94.1% <100.0%> (ø)
apple/Sources/Sargon/SargonOS/TestOS.swift 100.0% <100.0%> (ø)
apple/Sources/Sargon/Util/EventPublisher.swift 33.3% <100.0%> (ø)
...rates/sargon/src/profile/v100/header/profile_id.rs 100.0% <ø> (+11.1%) ⬆️
...s/sargon/src/system/sargon_os/sargon_os_profile.rs 92.3% <100.0%> (+0.1%) ⬆️
...sargon/os/storage/key/ProfileSnapshotKeyMapping.kt 100.0% <ø> (ø)
...on/src/profile/v100/header/profile_id_uniffi_fn.rs 80.0% <80.0%> (ø)
...ent/secure_storage_client/secure_storage_client.rs 84.6% <90.0%> (+0.8%) ⬆️
...ecure_storage_driver/support/secure_storage_key.rs 95.8% <95.4%> (-4.2%) ⬇️

Copy link
Contributor

@CyonAlexRDX CyonAlexRDX left a 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

@GhenadieVP GhenadieVP merged commit fb39a50 into fixes Sep 19, 2024
9 of 10 checks passed
@GhenadieVP GhenadieVP deleted the profile_snapshot_id_payload branch September 19, 2024 09:48
micbakos-rdx pushed a commit that referenced this pull request Sep 27, 2024
* wip

* wip

* fix test

* wip

* fix ios tests

* test

* update

* wip
micbakos-rdx pushed a commit that referenced this pull request Sep 30, 2024
* wip

* wip

* fix test

* wip

* fix ios tests

* test

* update

* wip
GhenadieVP added a commit that referenced this pull request Sep 30, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants