MCPcopy Create free account
hub / github.com/BitVM/BitVM / deserialize_txout

Function deserialize_txout

final-spv/src/transaction.rs:129–137  ·  view source on GitHub ↗
(reader: &mut R)

Source from the content-addressed store, hash-verified

127}
128
129fn deserialize_txout<R: borsh::io::Read>(reader: &mut R) -> borsh::io::Result<TxOut> {
130 let value = Amount::from_sat(u64::deserialize_reader(reader)?);
131 let script_pubkey = ScriptBuf::from_bytes(Vec::<u8>::deserialize_reader(reader)?);
132
133 Ok(TxOut {
134 value,
135 script_pubkey,
136 })
137}
138
139impl Deref for CircuitTransaction {
140 type Target = Transaction;

Callers 1

deserialize_readerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected