MCPcopy
hub / github.com/petertodd/python-bitcoinlib / from_bytes

Method from_bytes

bitcoin/messages.py:71–73  ·  view source on GitHub ↗
(cls, b, protover=PROTO_VERSION)

Source from the content-addressed store, hash-verified

69
70 @classmethod
71 def from_bytes(cls, b, protover=PROTO_VERSION):
72 f = BytesIO(b)
73 return MsgSerializable.stream_deserialize(f, protover=protover)
74
75 @classmethod
76 def stream_deserialize(cls, f, protover=PROTO_VERSION):

Callers

nothing calls this directly

Calls 1

stream_deserializeMethod · 0.45

Tested by

no test coverage detected