MCPcopy Create free account
hub / github.com/ElementsProject/elements / serialize

Method serialize

test/functional/test_framework/messages.py:642–648  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

640 self.scriptPubKey = deser_string(f)
641
642 def serialize(self):
643 r = b""
644 r += self.nAsset.serialize()
645 r += self.nValue.serialize()
646 r += self.nNonce.serialize()
647 r += ser_string(self.scriptPubKey)
648 return r
649
650 def from_pegin_witness_data(self, peg_witness):
651 self.nAsset = CTxOutAsset()

Callers 1

run_testMethod · 0.95

Calls 2

ser_stringFunction · 0.70
serializeMethod · 0.45

Tested by

no test coverage detected