Function zebra_chain::primitives::byte_array::increment_big_endian

source ·
pub fn increment_big_endian(byte_array: &mut [u8]) -> bool
Expand description

Increments byte_array by 1, interpreting it as a big-endian integer. If the big-endian integer overflowed, sets all the bytes to zero, and returns true.