def __str__(self):
    return 'LnAddr[{}, amount={}{} tags=[{}]]'.format((hexlify(self.pubkey.serialize()).decode('utf-8') if self.pubkey else None), self.amount, self.net.BOLT11_HRP, ', '.join([((k + '=') + str(v)) for (k, v) in self.tags]))
def __str__(self):
    return 'LnAddr[{}, amount={}{} tags=[{}]]'.format((hexlify(self.pubkey.serialize()).decode('utf-8') if self.pubkey else None), self.amount, self.net.BOLT11_HRP, ', '.join([((k + '=') + str(v)) for (k, v) in self.tags]))