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

Introduce hash of account storage #332

Open
zavodil opened this issue Mar 2, 2022 · 1 comment
Open

Introduce hash of account storage #332

zavodil opened this issue Mar 2, 2022 · 1 comment

Comments

@zavodil
Copy link

zavodil commented Mar 2, 2022

We have a code_hash which is extremely useful to recognise current application code for the given account.
Could you introduce a similar hash to determine account storage (data)?

Right now we have a continuous bug when 2FA is trying to overwrite account state and makes account invalid. We can't recognise if account has existing state using code_hash only.

Same approach may be used to verify if account state was modified (could be useful for many apps).

@bowenwang1996 bowenwang1996 transferred this issue from near/nearcore Mar 4, 2022
@bowenwang1996
Copy link
Collaborator

This would be much easier to do if we have account state in its own trie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: NEW❗
Development

No branches or pull requests

2 participants