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

Generate a Hash key when the library is started #5

Closed
5 tasks done
githengi opened this issue Mar 6, 2019 · 0 comments · Fixed by #32
Closed
5 tasks done

Generate a Hash key when the library is started #5

githengi opened this issue Mar 6, 2019 · 0 comments · Fixed by #32
Assignees
Labels
Size: Medium (2-3) Issue will take 2 - 3 days

Comments

@githengi
Copy link
Contributor

githengi commented Mar 6, 2019

  • Generate a Hash key for each device when the library is starting up .

  • The Hash key will be generated once during the life cycle of the app, if does not exist

  • After authentication and authorization on both devices the sender will send their Hash key to the receiver.

  • The receiver will maintain a record of sending devices and their hash key in a SQLite table p2p_hash_keys.

  • If a sender sends a different Hash key than the previous known hashkey, the records in p2p_received_history for that device are deleted.

This means that all data in the sender should be sent to the receiver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: Medium (2-3) Issue will take 2 - 3 days
Projects
None yet
2 participants