NEPs icon indicating copy to clipboard operation
NEPs copied to clipboard

Introduce hash of account storage

Open zavodil opened this issue 2 years ago • 1 comments

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).

zavodil avatar Mar 02 '22 14:03 zavodil

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

bowenwang1996 avatar Mar 04 '22 18:03 bowenwang1996