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

add default aes to keystore.. #17384

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oday0311
Copy link
Contributor

Description

Describe the changes or additions included in this PR.

Test plan

How did you test the new or updated feature?


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

Copy link

vercel bot commented Apr 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 28, 2024 6:23am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Apr 28, 2024 6:23am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Apr 28, 2024 6:23am
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Apr 28, 2024 6:23am

@joyqvq
Copy link
Contributor

joyqvq commented Apr 29, 2024

hi - thanks for the PR, wondering what's the context and what do you plan to use AES encryption/decryption for in the context of sui?

@oday0311
Copy link
Contributor Author

there are some cases, we don't want to display the base64 directly in the files, [not security enough], by add the default aes-encode, developers can compile the bin files with their own encrypto password, so instead of save base64 content , I think aes-encode content with user-custom aes-128 result is more reasonble. in fact, similar cases exist in the config files, network.yaml, fullnode.yaml, all the key-pair currently only save as base-64, but key-pairs content is less used in normal developer, but cli-key tool is widly use for dapps develoers in their server for deploy dapps.

@joyqvq
Copy link
Contributor

joyqvq commented May 2, 2024

there are some cases, we don't want to display the base64 directly in the files, [not security enough], by add the default aes-encode, developers can compile the bin files with their own encrypto password, so instead of save base64 content , I think aes-encode content with user-custom aes-128 result is more reasonble. in fact, similar cases exist in the config files, network.yaml, fullnode.yaml, all the key-pair currently only save as base-64, but key-pairs content is less used in normal developer, but cli-key tool is widly use for dapps develoers in their server for deploy dapps.

i generally like the direction but there are few details that worth going through standardization. Do you want to submit to SIP as well? It will be a greats place to elaborate the motivation, test plans and some choices around prefix etc for the broader community for feedback.

thanks for the contribution!

@oday0311
Copy link
Contributor Author

oday0311 commented May 3, 2024

in fact I have code already change the config and yaml files, but with more changes to nodeConfig Struct, I was thinking make 2 merge to fix these. Your comment of making a SIP is quite good, So I try one , sui-foundation/sips#21,

@oday0311
Copy link
Contributor Author

Yes, there was a relate merge in sui project, #17384, the develop suggest me to submit a sip

Copy link
Contributor

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants