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

Save bootstrap details to JSON file #9

Merged
merged 2 commits into from
Jan 20, 2024

Conversation

pbeza
Copy link
Contributor

@pbeza pbeza commented Jan 18, 2024

No description provided.

@pbeza pbeza force-pushed the feat/save-bootstrap-info branch 5 times, most recently from 320e0dd to e8ac35d Compare January 18, 2024 23:16
println!("Public key: 0x{}", key_pair.public_key());
let new_instance = public_key_to_address(&key_pair.public_key());
println!("Instance address: {}", new_instance);
let quote = get_sgx_quote()?;
let bootstrap_details_file_path = global_opts.config_dir.join(BOOTSTRAP_INFO_FILENAME);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not a good idea to store the privacy data into config path

Copy link
Contributor Author

@pbeza pbeza Jan 19, 2024

Choose a reason for hiding this comment

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

I partially agree: users' secrets/profile data are typically saved in $HOME/.config configuration directory instead of system-wide /etc. I fixed that – let me know if know is better (if not, pls suggest some other directory). 👍🏼

@pbeza pbeza marked this pull request as ready for review January 19, 2024 12:10
@pbeza pbeza requested a review from dyxushuai January 19, 2024 12:10
@johntaiko johntaiko merged commit 9485595 into taikoxyz:taiko/unstable Jan 20, 2024
3 checks passed
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.

3 participants