From e2dc6eaee750459abbe22bd59061884edfd356fb Mon Sep 17 00:00:00 2001
From: inso <insomniak.fr@gmaiL.com>
Date: Thu, 6 Jul 2017 20:31:53 +0200
Subject: [PATCH] Add crc str format

---
 duniterpy/documents/crc_pubkey.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/duniterpy/documents/crc_pubkey.py b/duniterpy/documents/crc_pubkey.py
index 3fd2c371..ae665d58 100644
--- a/duniterpy/documents/crc_pubkey.py
+++ b/duniterpy/documents/crc_pubkey.py
@@ -38,3 +38,6 @@ class CRCPubkey:
 
     def is_valid(self):
         return CRCPubkey.from_pubkey(self.pubkey).crc == self.crc
+
+    def __str__(self):
+        return "{:}:{:}".format(self.pubkey, self.crc)
\ No newline at end of file
-- 
GitLab