Skip to main content

is_zero_address

Function is_zero_address 

Source
pub fn is_zero_address(addr: &[u8; 32]) -> bool
Expand description

Check if a 32-byte address is all zeros (the default/system address).

Uses an OR-fold: OR all 4 u64 chunks together, then check if the result is zero. This avoids 32 individual byte comparisons.