pybitmessage.shared module

Some shared functions

Deprecated since version 0.6.3: Should be moved to different places and this file removed, but it needs refactoring.

isAddressInMyAddressBook(address)[source]

Is address in my addressbook?

isAddressInMySubscriptionsList(address)[source]

Am I subscribed to this address?

isAddressInMyAddressBookSubscriptionsListOrWhitelist(address)[source]

Am I subscribed to this address, is it in my addressbook or whitelist?

decodeWalletImportFormat(WIFstring)[source]

Convert private key from base58 that’s used in the config file to 8-bit binary string

reloadMyAddressHashes()[source]

Reload keys for user’s addresses from the config file

reloadBroadcastSendersForWhichImWatching()[source]

Reinitialize runtime data for the broadcasts I’m subscribed to from the config file

fixPotentiallyInvalidUTF8Data(text)[source]

Sanitise invalid UTF-8 strings

checkSensitiveFilePermissions(filename)[source]
Parameters:filename (str) – path to the file
Returns:True if file appears to have appropriate permissions.
fixSensitiveFilePermissions(filename, hasEnabledKeys)[source]

Try to change file permissions to be more restrictive