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

Method __str__

bitcoin/base58.py:127–131  ·  view source on GitHub ↗

Convert to string

(self)

Source from the content-addressed store, hash-verified

125 return b'' + self
126
127 def __str__(self):
128 """Convert to string"""
129 vs = bytes([self.nVersion]) + self
130 check = bitcoin.core.Hash(vs)[0:4]
131 return encode(vs + check)
132
133 def __repr__(self):
134 return '%s(%r)' % (self.__class__.__name__, str(self))

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected