code: def get_blockcypher_walletname_from_mpub(mpub, subchain_indices=[]):
      '''
      Blockcypher limits wallet names to 25 chars.
  
      Hash the master pubkey (with subchain indexes) and take the first 25 chars.
  
      Hackey determinstic method for naming.
      '''
  
      #  http://stackoverflow.com/a/19877309/1754586
      mpub = mpub.encode('utf-8')
  
      if subchain_indices:
          mpub += ','.join([str(x) for x in subchain_indices]).encode('utf-8')
      return 'X%s' % sha256(mpub).hexdigest()[:24f get_blockcypher_walletname_from_mpub(mpub, subchain_indices=[]):
      '''
      Blockcypher limits wallet names to 25 chars.
  
      Hash the master pubkey (with subchain indexes) and take the first 25 chars.
  
      Hackey determinstic method for naming.
      '''
  
      #  http://stackoverflow.com/a/19877309/1754586
      mpub = mpub.encode('utf-8')
  
      if subchain_indices:
          mpub += ','.join([str(x) for x in subchain_indices]).encode('utf-8')
      return 'X%s' % sha256(mpub).hexdigest()[:24]
docs: Blockcypher limits wallet names to 25 chars.
  
      Hash the master pubkey (with subchain indexes) and take the first 25 chars.
  
      Hackey determinstic method for naming.