Skip to content

trie-db: hash logical keys in Secure and Fat get_hash - #238

Open
DicksonWu654 wants to merge 1 commit into
paritytech:masterfrom
DicksonWu654:fix/logical-key-get-hash
Open

trie-db: hash logical keys in Secure and Fat get_hash#238
DicksonWu654 wants to merge 1 commit into
paritytech:masterfrom
DicksonWu654:fix/logical-key-get-hash

Conversation

@DicksonWu654

Copy link
Copy Markdown

Summary

  • hash logical keys before Secure and Fat trie wrappers delegate get_hash to the raw trie
  • align get_hash with the existing logical-key behavior of get and contains
  • add focused regression tests for both wrappers

Testing

  • cargo test -p trie-db-test get_hash_uses_logical_key -- --nocapture

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.

1 participant