pub fn write_script<W: Write>(writer: W, script: &Script) -> Result<()>
Writes script with a CompactSize length prefix.
script
Returns an error only if writer fails.
writer