Exemplo n.º 1
0
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())]
Exemplo n.º 2
0
class JMFill(JMCommand):
    """Fill an offer/order
    """
    arguments = [(b'amount', Integer()), (b'commitment', Unicode()),
                 (b'revelation', Unicode()), (b'filled_offers', Unicode())]
Exemplo n.º 3
0
class JMSigReceived(JMCommand):
    """Returns an individual bitcoin transaction signature
    from a MAKER
    """
    arguments = [(b'nick', Unicode()), (b'sig', Unicode())]
Exemplo n.º 4
0
class JMStartMC(JMCommand):
    """Will restart message channel connections if config
    has changed; otherwise will only change nym/nick on MCs.
    """
    arguments = [(b'nick', Unicode())]
Exemplo n.º 5
0
class BIP78InfoMsg(JMCommand):
    """ Sends an info message to the client
    from the daemon about current status at
    network level.
    """
    arguments = [(b'infomsg', Unicode())]
Exemplo n.º 6
0
class JMTXSigs(JMCommand):
    """Send signatures on the bitcoin transaction
    sent by TAKER
    """
    arguments = [(b'nick', Unicode()), (b'sigs', Unicode())]
Exemplo n.º 7
0
class JMFidelityBondProof(JMCommand):
    """Send requested fidelity bond proof message"""
    arguments = [(b'nick', Unicode()), (b'proof', Unicode())]
Exemplo n.º 8
0
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())]
Exemplo n.º 9
0
 def fromStringProto(self, inString, proto):
     return Action.continue_task(
         proto.logger, Unicode.fromStringProto(self, inString, proto))
Exemplo n.º 10
0
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())]
Exemplo n.º 11
0
class ServeChunks(Command):
    arguments = [('encoded_file'.encode(), String()),
                 ('sender_ip'.encode(), Unicode())]
Exemplo n.º 12
0
class DeleteSlaveFile(Command):
    arguments = [('file_name'.encode(), Unicode())]
Exemplo n.º 13
0
class LogReceived(Command, object):
    arguments = [("message", Unicode())]
    requiresAnswer = False
Exemplo n.º 14
0
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())]
Exemplo n.º 15
0
class JMFidelityBondProofRequest(JMCommand):
    """MAKER wants to announce a fidelity bond proof message"""
    arguments = [(b'takernick', Unicode()), (b'makernick', Unicode())]
Exemplo n.º 16
0
class BIP78ReceiverUp(JMCommand):
    """ Returns onion hostname to client when
    the hidden service has been brought up, indicating
    readiness.
    """
    arguments = [(b'hostname', Unicode())]
Exemplo n.º 17
0
class SNICKERReceiverProposals(JMCommand):
    """ Sends the retrieved proposal list from
    a specific server, from daemon back to client.
    """
    arguments = [(b'proposals', BigUnicode()), (b'server', Unicode())]
Exemplo n.º 18
0
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())]
Exemplo n.º 19
0
class SNICKERProposerPostProposals(JMCommand):
    """ Sends a list of proposals to be uploaded
    to a server.
    """
    arguments = [(b'proposals', BigUnicode()), (b'server', Unicode())]
Exemplo n.º 20
0
class JMMakeTx(JMCommand):
    """Send a hex encoded raw bitcoin transaction
    to a set of counterparties
    """
    arguments = [(b'nick_list', ListOf(Unicode())), (b'tx', String())]
Exemplo n.º 21
0
class SNICKERProposalsServerResponse(JMCommand):
    arguments = [(b'response', Unicode()), (b'server', Unicode())]
Exemplo n.º 22
0
class JMFillResponse(JMCommand):
    """Returns ioauth data from MAKER if successful.
    """
    arguments = [(b'success', Boolean()), (b'ioauth_data', Unicode())]
Exemplo n.º 23
0
class SNICKERServerError(JMCommand):
    arguments = [(b'server', Unicode()), (b'errorcode', Integer())]
Exemplo n.º 24
0
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())]
Exemplo n.º 25
0
class SNICKERRequestPowTarget(JMCommand):
    arguments = [(b'server', Unicode())]
Exemplo n.º 26
0
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())]
Exemplo n.º 27
0
class SNICKERReceivePowTarget(JMCommand):
    arguments = [(b'server', Unicode()), (b'targetbits', Integer())]
Exemplo n.º 28
0
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())]
Exemplo n.º 29
0
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())]
Exemplo n.º 30
0
 def fromStringProto(self, inString, proto):
     return Action.continue_task(
         proto.logger,
         Unicode.fromStringProto(self, inString, proto))
Exemplo n.º 31
0
class BIP78ReceiverInit(JMCommand):
    """ Initialization data for a BIP78 hidden service.
    """
    arguments = [(b'netconfig', Unicode())]