Is there anything wrong with banning keys from being prefixes of other keys? I don’t think we need that possibility for a tree model; eg. I was thinking:
-
address + 0x00
for balance -
address + 0x01
for nonce -
address + 0x02 + chunk_id
for code -
address + 0x03 + storage_key
for storage.