Timestamp to Block Mapper
The Timestamp to Block Mapper facilitates the mapping of block numbers to their corresponding timestamps.
Overview

Deployment Environment Constraints
Possible Approaches to the Problem
Red-Black Tree
Benefits
Drawbacks
Binary Search
Benefits
Drawbacks
Original Data Source: HeadersStore
Features

Understanding the MMR's Block Number Ordering
block number
x
x-1
x-2
x-3
x-4
x-5
z>x
z-1
Remapping the Original MMR for Binary Search
Procedure
Step 1: Find the Middle Element
Step 2: Determine the Search Direction
Step 3: Find the Middle Element of the Left Half
Step 4: Determine the Next Search Direction
Step 5: Find the Middle Element of the Right Half
Step 6: Determine the Next Search Direction
Step 7: Find the Middle Element of the Left Half
Step 8: Determine the Final Search Direction
Outcome
Specification
Edge Cases
Typescript implementation of the algorithm
Summary
Future Work
Last updated