bhive.message module

class bhive.message.Message(message, hive_instance=None)

Bases: object

sign(account=None, **kwargs)

Sign a message with an account’s memo key

Parameters

account (str) – (optional) the account that owns the bet (defaults to default_account)

Returns

the signed message encapsulated in a known format

verify(**kwargs)

Verify a message with an account’s memo key

Parameters

account (str) – (optional) the account that owns the bet (defaults to default_account)

Returns

True if the message is verified successfully

Raises

InvalidMessageSignature – if the signature is not ok