Inspiration
bip34 and the lack of block height in the raw block data pre-bip34
What it does
Height Oracle is a feature-flagged extension for the rust-bitcoin crate that enables sub-microsecond lookups of pre-BIP34 block heights (230k) —no more full-chain indexing on every test node.
It’s fully opt-in (zero overhead when disabled) and uses perfect hashing plus bit-packing to shrink your height data from 20 MB down to under 700 KiB ~90% smaller. By enabling height oracle you can cut test-node setup, analytics, and development from minutes to microseconds.
How we built it
Vibe coding baby ... cursor
Challenges we ran into
Accomplishments that we're proud of
What we learned
How perfect hashing algos work
What's next for height oracle
Open PR for rust-bitcoin
Built With
- cursor
- rust
Log in or sign up for Devpost to join the conversation.