fn hash_outputs<W: io::Write>(&self, mut writer: W) -> Result<(), io::Error> {
        if self.hash_type.masked() != HashType::SINGLE && self.hash_type.masked() != HashType::NONE
        {
            self.outputs_hash(writer)
        } else if self.hash_type.masked() == HashType::SINGLE
            && self
                .input
                .as_ref()
                .map(|&(_, _, index)| index)
                .map(|index| index < self.trans.outputs().len())
                .unwrap_or(false)
        {
            self.single_output_hash(writer)
        } else {
            writer.write_all(&[0; 32])
        }
    }
/// Writes the u256 hash of the transactions outputs to the provided Writer
Writes the u256 hash of the transactions outputs to the provided Writer
Writes the u256 hash of the transactions outputs to the provided Writer
fn hash_outputs<W: io::Write>(&self, mut writer: W) -> Result<(), io::Error> {
        if self.hash_type.masked() != HashType::SINGLE && self.hash_type.masked() != HashType::NONE
        {
            self.outputs_hash(writer)
        } else if self.hash_type.masked() == HashType::SINGLE
            && self
                .input
                .as_ref()
                .map(|&(_, _, index)| index)
                .map(|index| index < self.trans.outputs().len())
                .unwrap_or(false)
        {
            self.single_output_hash(writer)
        } else {
            writer.write_all(&[0; 32])
        }
    }
fn hash_outputs < W : io :: Write > ( & self , mut writer : W ) -> Result < ( ) , io :: Error > { if self . hash_type . masked ( ) != HashType :: SINGLE && self . hash_type . masked ( ) != HashType :: NONE { self . outputs_hash ( writer ) } else if self . hash_type . masked ( ) == HashType :: SINGLE && self . input . as_ref ( ) . map ( | & ( _ , _ , index ) | index ) . map ( | index | index < self . trans . outputs ( ) . len ( ) ) . unwrap_or ( false ) { self . single_output_hash ( writer ) } else { writer . write_all ( & [ 0 ; 32 ] ) } }
Writes the u256 hash of the transactions outputs to the provided Writer
Writes the u256 hash of the transactions outputs to the provided Writer
&self
writer
W