-
Notifications
You must be signed in to change notification settings - Fork 96
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
Please clarify key names and new SLEEP file types #93
Comments
There was a bug where the content secret key got written. That is fixed in latest (it's an empty file now) |
What about |
Secret keys end up in
I have a lot of empty secret key files (just the discovery key file name)... probably a bug with opening files write/append. TODO: file a bug for this. |
I recently created a dat archive:
First, I notice that
content.secret_key
is in there, butmetadata.secret_key
. I have heard (and previously read somewhere) that secret keys live in~/.dat/secret_key/
, and indeed I see keys in there. @maxogden on IRC seemed concerned thatcontent.secret_key
was not in the homedir folder, and indeed, I believe the metadata register does not include any hashes or signatures of the content register (only index and length), so an attacker could inject corrupted/modified data. To be clear, this isn't any kind of remote exploit weakness, it only applies to the case where somebody copies a whole .dat directory around, copying and potentially exposing key material.The
metadata.latest
andmetadata.ogd
files are not mentioned in the whitepaper. On IRC @maxogden said thatmetadata.ogd
(:wink: :wink: ) mean "this is the original dat folder", which I assume is supposed to be a flag that the metadata secret key should be available and the dat overall is writable... is this the canonical flag for this, or should compatible clients also look in~/.dat/secret_keys/
on their own? What ismetadata.latest
for?If somebody replies to this issue, I can send a PR to include answers in the whitepaper.
The text was updated successfully, but these errors were encountered: