Skip to main content

read_scriptbool

Function read_scriptbool 

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

Decodes a script truth value.

This uses script boolean semantics: all zero bytes and negative zero are false; every other byte string is true. Numeric-overflow rules do not apply.