class JMMsgSignature(JMCommand): """A response to a request for a bitcoin signature on a message-channel layer message from the daemon """ arguments = [(b'nick', Unicode()), (b'cmd', Unicode()), (b'msg_to_return', Unicode()), (b'hostid', Unicode())]
class JMFill(JMCommand): """Fill an offer/order """ arguments = [(b'amount', Integer()), (b'commitment', Unicode()), (b'revelation', Unicode()), (b'filled_offers', Unicode())]
class JMSigReceived(JMCommand): """Returns an individual bitcoin transaction signature from a MAKER """ arguments = [(b'nick', Unicode()), (b'sig', Unicode())]
class JMStartMC(JMCommand): """Will restart message channel connections if config has changed; otherwise will only change nym/nick on MCs. """ arguments = [(b'nick', Unicode())]
class BIP78InfoMsg(JMCommand): """ Sends an info message to the client from the daemon about current status at network level. """ arguments = [(b'infomsg', Unicode())]
class JMTXSigs(JMCommand): """Send signatures on the bitcoin transaction sent by TAKER """ arguments = [(b'nick', Unicode()), (b'sigs', Unicode())]
class JMFidelityBondProof(JMCommand): """Send requested fidelity bond proof message""" arguments = [(b'nick', Unicode()), (b'proof', Unicode())]
class BIP78ReceiverSendError(JMCommand): """ Sends a message from client to daemon indicating that the BIP78 receiver did not accept the request, to be forwarded to the sender. """ arguments = [(b'errormsg', Unicode()), (b'errorcode', Unicode())]
def fromStringProto(self, inString, proto): return Action.continue_task( proto.logger, Unicode.fromStringProto(self, inString, proto))
class JMPushTx(JMCommand): """Pass a raw hex transaction to a specific counterparty (maker) for pushing (anonymity feature in JM) """ arguments = [(b'nick', Unicode()), (b'tx', String())]
class ServeChunks(Command): arguments = [('encoded_file'.encode(), String()), ('sender_ip'.encode(), Unicode())]
class DeleteSlaveFile(Command): arguments = [('file_name'.encode(), Unicode())]
class LogReceived(Command, object): arguments = [("message", Unicode())] requiresAnswer = False
class BIP78ReceiverOriginalPSBT(JMCommand): """ Sends the sender's original payment PSBT, base64 encoded, and the request parameters in the url, from the daemon to the client. """ arguments = [(b'body', BigUnicode()), (b'params', Unicode())]
class JMFidelityBondProofRequest(JMCommand): """MAKER wants to announce a fidelity bond proof message""" arguments = [(b'takernick', Unicode()), (b'makernick', Unicode())]
class BIP78ReceiverUp(JMCommand): """ Returns onion hostname to client when the hidden service has been brought up, indicating readiness. """ arguments = [(b'hostname', Unicode())]
class SNICKERReceiverProposals(JMCommand): """ Sends the retrieved proposal list from a specific server, from daemon back to client. """ arguments = [(b'proposals', BigUnicode()), (b'server', Unicode())]
class BIP78ReceiverOnionSetupFailed(JMCommand): """ Sends a message from the daemon to the client when the hidden service setup failed for the given reason. """ arguments = [(b'reason', Unicode())]
class SNICKERProposerPostProposals(JMCommand): """ Sends a list of proposals to be uploaded to a server. """ arguments = [(b'proposals', BigUnicode()), (b'server', Unicode())]
class JMMakeTx(JMCommand): """Send a hex encoded raw bitcoin transaction to a set of counterparties """ arguments = [(b'nick_list', ListOf(Unicode())), (b'tx', String())]
class SNICKERProposalsServerResponse(JMCommand): arguments = [(b'response', Unicode()), (b'server', Unicode())]
class JMFillResponse(JMCommand): """Returns ioauth data from MAKER if successful. """ arguments = [(b'success', Boolean()), (b'ioauth_data', Unicode())]
class SNICKERServerError(JMCommand): arguments = [(b'server', Unicode()), (b'errorcode', Integer())]
class JMTXReceived(JMCommand): """Send back transaction template provided by TAKER, along with offerdata to verify fees. """ arguments = [(b'nick', Unicode()), (b'txhex', Unicode()), (b'offer', Unicode())]
class SNICKERRequestPowTarget(JMCommand): arguments = [(b'server', Unicode())]
class JMSetup(JMCommand): """Communicates which of "MAKER" or "TAKER" roles are to be taken by this client; for MAKER role, passes initial offers for announcement (for TAKER, this data is "none") """ arguments = [(b'role', Unicode()), (b'initdata', Unicode())]
class SNICKERReceivePowTarget(JMCommand): arguments = [(b'server', Unicode()), (b'targetbits', Integer())]
class JMMsgSignatureVerify(JMCommand): """A response to a request to verify the bitcoin signature of a message-channel layer message from the daemon """ arguments = [(b'verif_result', Boolean()), (b'nick', Unicode()), (b'fullmsg', Unicode()), (b'hostid', Unicode())]
class BIP78SenderReceiveError(JMCommand): """ Sends a message from daemon to client indicating that the BIP78 receiver did not accept the request, or there was a network error. """ arguments = [(b'errormsg', Unicode()), (b'errorcode', Integer())]
class BIP78ReceiverInit(JMCommand): """ Initialization data for a BIP78 hidden service. """ arguments = [(b'netconfig', Unicode())]