code: def b58decode_int(v):
      '''Decode a Base58 encoded string as an integer'''
      v = v.rstrip()
      v = scrub_input(v)
  
      decimal = 0
      for char in v:
          decimal = decimal * 58 + alphabet.index(char)
      return decimaf b58decode_int(v):
      '''Decode a Base58 encoded string as an integer'''
      v = v.rstrip()
      v = scrub_input(v)
  
      decimal = 0
      for char in v:
          decimal = decimal * 58 + alphabet.index(char)
      return decimal
docs: Decode a Base58 encoded string as an integer