Skip to main content

read_outpoint

Function read_outpoint 

Source
pub fn read_outpoint<R: Read>(reader: R) -> Result<OutPoint>
Expand description

Reads an [OutPoint] from its transaction encoding: a 32-byte txid followed by the output index as a little-endian u32.

Returns an error if the reader fails or the input is truncated.