Skip to content
Snippets Groups Projects
Commit e2dc6eae authored by inso's avatar inso
Browse files

Add crc str format

parent d78b12db
No related branches found
No related tags found
No related merge requests found
...@@ -38,3 +38,6 @@ class CRCPubkey: ...@@ -38,3 +38,6 @@ class CRCPubkey:
def is_valid(self): def is_valid(self):
return CRCPubkey.from_pubkey(self.pubkey).crc == self.crc return CRCPubkey.from_pubkey(self.pubkey).crc == self.crc
def __str__(self):
return "{:}:{:}".format(self.pubkey, self.crc)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment