Skip to content

Port crypto RocksDB budgeted deserialization#1923

Merged
huitseeker merged 6 commits intonextfrom
huitseeker/port-crypto-rocksdb-sync
Apr 16, 2026
Merged

Port crypto RocksDB budgeted deserialization#1923
huitseeker merged 6 commits intonextfrom
huitseeker/port-crypto-rocksdb-sync

Conversation

@huitseeker
Copy link
Copy Markdown
Contributor

This ports the RocksDB backend change from 0xMiden/crypto#846 “Use budgeted deserialization for untrusted bytes.”

The change updates the migrated RocksDB backend to use read_from_bytes_with_budget for SMT leaves and depth-24 hashes read from RocksDB. The budget is the stored byte length.

During validation, make check-features also found a rocksdb feature-gating gap in store state loading. This PR gates the RocksDbOptions import and uses the memory-storage config when the rocksdb feature is off.

@huitseeker huitseeker marked this pull request as ready for review April 10, 2026 16:32
Copy link
Copy Markdown

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@huitseeker huitseeker merged commit 1c344e5 into next Apr 16, 2026
18 checks passed
@huitseeker huitseeker deleted the huitseeker/port-crypto-rocksdb-sync branch April 16, 2026 06:19
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.

3 participants