bdk_chain::bitcoin::blockdata::script

Function read_scriptbool

pub fn read_scriptbool(v: &[u8]) -> bool
Expand description

Decodes a boolean.

This is like “read_scriptint then map 0 to false and everything else as true”, except that the overflow rules don’t apply.