parameters: (s)
return_statement: return result.to_bytes((result.bit_length() + 7) // 8, 'big')
docstring: encodes a base58 string to as a big endian integer
docstring_summary: encodes a base58 string to as a big endian integer
docstring_tokens: encodes a base58 string to as a big endian integer
function: def base58_to_binary(s):
          """encodes a base58 string to as a big endian integer"""
          if Exchange.base58_decoder is None:
              Exchange.base58_decoder = {}
              Exchange.base58_encoder = {}
              for i, c in enumerate(Exchange.base58_alphabet):
                  Exchange.base58_decoder[c] = i
                  Exchange.base58_encoder[i] = c
          result = 0
          for i in range(len(s)):
              result *= 58
              result += Exchange.base58_decoder[s[i]]
          return result.to_bytes((result.bit_length() + 7) // 8, 'big')
function_tokens: def base58_to_binary ( s ) : if Exchange . base58_decoder is None : Exchange . base58_decoder = { } Exchange . base58_encoder = { } for i , c in enumerate ( Exchange . base58_alphabet ) : Exchange . base58_decoder [ c ] = i Exchange . base58_encoder [ i ] = c result = 0 for i in range ( len ( s ) ) : result *= 58 result += Exchange . base58_decoder [ s [ i ] ] return result . to_bytes ( ( result . bit_length ( ) + 7 ) // 8 , 'big' )