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

Method serialize

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

Source from the content-addressed store, hash-verified

378 self.n = struct.unpack("<I", f.read(4))[0]
379
380 def serialize(self):
381 r = b""
382 r += ser_uint256(self.hash)
383 r += struct.pack("<I", self.n)
384 return r
385
386 def __repr__(self):
387 return "COutPoint(hash=%064x n=%i)" % (self.hash, self.n)

Callers 2

serializeMethod · 0.95
serializeMethod · 0.95

Calls 1

ser_uint256Function · 0.70

Tested by

no test coverage detected