MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / addBMIfNotPresent

Function addBMIfNotPresent

src/addresses.py:241–246  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

239 return status,addressVersionNumber,streamNumber,x00string+embeddedRipeData
240
241def addBMIfNotPresent(address):
242 address = str(address).strip()
243 if address[:3] != 'BM-':
244 return 'BM-'+address
245 else:
246 return address
247
248if __name__ == "__main__":
249 print 'Let us make an address from scratch. Suppose we generate two random 32 byte values and call the first one the signing key and the second one the encryption key:'

Callers 15

HandleJoinChanMethod · 0.90
HandleLeaveChanMethod · 0.90
HandleDeleteAddressMethod · 0.90
HandleSendMessageMethod · 0.90
HandleSendBroadcastMethod · 0.90
HandleAddSubscriptionMethod · 0.90
acceptMethod · 0.90
identiconizeFunction · 0.90
avatarizeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected