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

Method to_bytes

bitcoin/bech32.py:54–60  ·  view source on GitHub ↗

Convert to bytes instance Note that it's the data represented that is converted; the checkum and witver is not included.

(self)

Source from the content-addressed store, hash-verified

52 return self
53
54 def to_bytes(self):
55 """Convert to bytes instance
56
57 Note that it's the data represented that is converted; the checkum and
58 witver is not included.
59 """
60 return b'' + self
61
62 def __str__(self):
63 """Convert to string"""

Callers 6

ripemd160Function · 0.45
serialization_testMethod · 0.45
TMethod · 0.45
send-addrs-msg.pyFile · 0.45

Calls

no outgoing calls

Tested by 3

serialization_testMethod · 0.36
TMethod · 0.36