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

Refactor Proof Interface #252

Merged
merged 27 commits into from
Nov 26, 2020
Merged

Refactor Proof Interface #252

merged 27 commits into from
Nov 26, 2020

Conversation

seanwu1105
Copy link
Contributor

@seanwu1105 seanwu1105 commented Nov 25, 2020

Due to the limitation of Capacitor and Ionic framework, we cannot and should not use the same architecture from Starling Capture, which is based on Android framework. Thus, I have rewritten most parts regarding the data persistence. This includes:

  • Merge InformationRepository, SignatureRepository and SerializationService into ProofRepository and provide the same functionality.
  • Refactor CollectorService and the corresponding InformationProviders and SignatureProviders to accept newly merged Proof instance.
  • Refactor PublisherAlert and the corresponding publisher NumbersStoragePublisher and NumbersStorageApi to accept newly merged Proof instance.
  • Write unit tests to fully cover the refactored components, and thus the coverage has reached 70%.
  • Implement an adapter (old-proof-adapter) to provide the connection between Numbers Storage Back-end.

…r Filesystem plugin.

We use the plugin to create a JSON file for each table in database. The JSON contains a
single big array to store tuples. Also, we use an async-mutex to insure each insertion
and deletion is atomic. We write a fully covered unit tests to make sure the reliability.
@seanwu1105 seanwu1105 added this to the beta7 milestone Nov 25, 2020
@seanwu1105 seanwu1105 self-assigned this Nov 25, 2020
Copy link
Contributor

@shc261392 shc261392 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

2 participants