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

Set PublicPrivate KeyPair with values from DHT, use salt from DHT #2

Open
rmatil opened this issue Jan 7, 2016 · 0 comments
Open

Comments

@rmatil
Copy link
Member

rmatil commented Jan 7, 2016

The public private key pair should not be transferred manually from one client to another. Therefore, we save the publicKey, privateKey (encrypted with the password & salt from the user) and the salt in the DHT.

Add the following:

  • Join network without any key pair (Client#initPeerDht)
  • Fetch public key, private key and salt from the DHT
  • Generate secret key for the user using the pw and the salt
  • Add secret key to the user
  • Decrypt the private key using the secret key from the user
  • Set public private key pair in PeerDHT

Blocker: tomp2p/TomP2P#123

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

No branches or pull requests

1 participant