pub fn read_script<R: Read>(reader: R) -> Result<Script>Expand description
Reads a CompactSize-prefixed script.
Returns an error for an invalid length prefix or a reader failure, including
io::ErrorKind::UnexpectedEof if the prefix or the script bytes are truncated.