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

Method checkPubkey

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

Source from the content-addressed store, hash-verified

99 raise BMObjectInvalidError()
100
101 def checkPubkey(self):
102 if len(self.data) < 146 or len(self.data) > 440: # sanity check
103 logger.info('pubkey object too short or too long. Ignoring.')
104 raise BMObjectInvalidError()
105
106 def checkBroadcast(self):
107 if len(self.data) < 180:

Callers 1

checkObjectByTypeMethod · 0.95

Calls 1

Tested by

no test coverage detected