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

Expand account storage mode options #139

Closed
bobbinth opened this issue Jun 6, 2023 · 1 comment
Closed

Expand account storage mode options #139

bobbinth opened this issue Jun 6, 2023 · 1 comment

Comments

@bobbinth
Copy link
Contributor

bobbinth commented Jun 6, 2023

Currently, account storage options are: (1) on chain and (2) off chain. These options a encoded in the 3rd most significant bit of the account ID. It may be good to use 2 bits rather than 1 to encode this information as we may want to add additional storage modes in the future. Specifically, we could do something like this:

  • 00: account data is stored on-chain in plaintext.
  • 01: account data is stored on-chain in encrypted text.
  • 10: reserved for future use.
  • 11: account data is stored off chain.

Thus, we'd have the first 4 bits of the account ID encode account properties: 2 bits for account type and 2 bits for account storage mode.

@bobbinth
Copy link
Contributor Author

bobbinth commented Jun 6, 2023

Superseded by #140.

@bobbinth bobbinth closed this as completed Jun 6, 2023
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