MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / stream_deserialize

Method stream_deserialize

bitcoin/signature.py:30–38  ·  view source on GitHub ↗
(cls, f)

Source from the content-addressed store, hash-verified

28
29 @classmethod
30 def stream_deserialize(cls, f):
31 assert ser_read(f, 1) == b"\x30"
32 rs = BytesSerializer.stream_deserialize(f)
33 f = BytesIO(rs)
34 assert ser_read(f, 1) == b"\x02"
35 r = BytesSerializer.stream_deserialize(f)
36 assert ser_read(f, 1) == b"\x02"
37 s = BytesSerializer.stream_deserialize(f)
38 return cls(r, s, len(r + s))
39
40 def stream_serialize(self, f):
41 f.write(b"\x30")

Callers

nothing calls this directly

Calls 1

ser_readFunction · 0.85

Tested by

no test coverage detected