MCPcopy
hub / github.com/jimmysong/programmingbitcoin / parse

Method parse

code-ch13/network.py:224–226  ·  view source on GitHub ↗
(cls, s)

Source from the content-addressed store, hash-verified

222 self.nonce = nonce
223
224 def parse(cls, s):
225 nonce = s.read(8)
226 return cls(nonce)
227
228 def serialize(self):
229 return self.nonce

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected