Expand description
Optimized access using proven bounds
Uses bounds proven by formal verification to optimize runtime access. This is safe because formal proofs guarantee these bounds hold.
Reference: Formal proofs in transaction.rs, block.rs, mining.rs, pow.rs, etc. These proofs formally verify that certain bounds always hold, allowing us to use optimized access patterns without runtime bounds checks.
Functionsยง
- get_
proven - Get element with proven bounds check
- get_
proven_ by_ - Get element with proven bounds (alias for get_proven for compatibility)
- prealloc_
block_ buffer - Pre-allocate block buffer using proven maximum
- prealloc_
proven - Pre-allocate buffer using proven maximum size
- prealloc_
tx_ buffer - Pre-allocate transaction buffer using proven maximum