-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(cli): derive keys for Client signing ops, metadata chunks encryption, and for acc-packet root folder xorname #1509
feat(cli): derive keys for Client signing ops, metadata chunks encryption, and for acc-packet root folder xorname #1509
Conversation
cbb7cac
to
8b8ea72
Compare
/// TODO: allow to provide specific keys, and/or a way to derive keys, for encrypting and siging operations. Currently | ||
/// the provided Client's key is used for both encrypting data and signing network operations. | ||
/// | ||
/// TODO: make use of eip2333 paths for deriving keys. Currently keys used for encrypting and signing |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
/// - Sign all data operations sent to the network. | ||
/// - Set it as the owner of all Folders (Registers) created on the network. | ||
/// - Encrypt all the Folders entries metadata chunks. | ||
// TODO: use eip2333 path for deriving keys |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
@@ -42,15 +42,28 @@ | |||
use walkdir::{DirEntry, WalkDir}; | |||
use xor_name::XorName; | |||
|
|||
/// Derivation index used to obtain the account packet root folder xorname | |||
// TODO: use eip2333 path for deriving keys |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
8b8ea72
to
5b2e70c
Compare
} | ||
|
||
// Read the root seed/SK from disk | ||
// TODO: decrypt the SK with a password |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
@@ -146,6 +153,31 @@ | |||
Ok(()) | |||
} | |||
|
|||
// Store the given root seed/SK on disk | |||
// TODO: encrypt the SK with a password |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
@@ -864,20 +890,51 @@ | |||
.map(|(meta_xorname, _)| *meta_xorname) | |||
} | |||
|
|||
// Using the provided root SK, derive client signer SK and the root Folder address from it. | |||
// It returns the Client updated with the derived signing key set, along with the derived Register address. | |||
// TODO: use eip2333 path for deriving keys and address. |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
/// All keys used for encrypting the files/folders metadata chunks and signing | ||
/// operations are derived from the root key provided using index derivation. | ||
/// The root Folder address and owner are also derived from the root SK. | ||
/// TODO: A password can be optionally provided to encrypt the root SK before storing it on disk. |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
d03519a
to
6da5d6c
Compare
6da5d6c
to
7afdd6b
Compare
7afdd6b
to
e900fad
Compare
Description
reviewpad:summary