go-ethereum/trie
Stephen Buttolph 86a2fa8836
Verify key length in range proofs (#176)
## Why this should be merged

This enforces an assumption that is currently made by
`VerifyRangeProof`. If a key is a prefix of another key, the current
code can panic.

## How this works

Enforces all keys have the same length.

## How this was tested

Added a unit test.
2025-04-10 14:14:42 -04:00
..
testutil [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
trienode [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
triestate [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
utils [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
committer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
database_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
encoding.go trie: reduce allocs in recHash (#27770) 2023-08-18 22:41:19 +02:00
encoding_test.go trie: reduce allocs in recHash (#27770) 2023-08-18 22:41:19 +02:00
errors.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
hasher.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
iterator.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
iterator_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
node.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
node_enc.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
node_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
proof.go Verify key length in range proofs (#176) 2025-04-10 14:14:42 -04:00
proof.libevm.go Verify key length in range proofs (#176) 2025-04-10 14:14:42 -04:00
proof.libevm_test.go Verify key length in range proofs (#176) 2025-04-10 14:14:42 -04:00
proof_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
secure_trie.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
secure_trie_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
stacktrie.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
stacktrie_fuzzer_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
stacktrie_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
sync.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
sync_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
tracer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
tracer_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
trie.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
trie_id.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
trie_reader.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
trie_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
verkle.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
verkle_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00