MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / checkGetpubkey

Method checkGetpubkey

src/network/bmobject.py:96–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 return
95
96 def checkGetpubkey(self):
97 if len(self.data) < 42:
98 logger.info('getpubkey message doesn\'t contain enough data. Ignoring.&#x27;)
99 raise BMObjectInvalidError()
100
101 def checkPubkey(self):
102 if len(self.data) < 146 or len(self.data) > 440: # sanity check

Callers 1

checkObjectByTypeMethod · 0.95

Calls 1

Tested by

no test coverage detected