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

Method serialize

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

Source from the content-addressed store, hash-verified

330 self.hash = deser_uint256(f)
331
332 def serialize(self):
333 r = b""
334 r += struct.pack("<I", self.type)
335 r += ser_uint256(self.hash)
336 return r
337
338 def __repr__(self):
339 return "CInv(type=%s hash=%064x)" \

Callers 15

build_messageMethod · 0.45
LegacySignatureMsgFunction · 0.45
SegwitV0SignatureMsgFunction · 0.45
BIP341_sha_prevoutsFunction · 0.45
BIP341_sha_amountsFunction · 0.45
BIP341_sha_outputsFunction · 0.45
TaprootSignatureMsgFunction · 0.45
send_toMethod · 0.45
bulk_transactionFunction · 0.45
send_to_witnessFunction · 0.45
ser_vectorFunction · 0.45

Calls 1

ser_uint256Function · 0.70

Tested by

no test coverage detected