Dash Core  0.12.2.1
P2P Digital Currency
darksend-relay.h
Go to the documentation of this file.
1 
2 // Copyright (c) 2014-2017 The Dash Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef DARKSEND_RELAY_H
7 #define DARKSEND_RELAY_H
8 
9 #include "validation.h"
10 #include "activemasternode.h"
11 #include "masternodeman.h"
12 
13 
15 {
16 public:
18  vector<unsigned char> vchSig;
19  vector<unsigned char> vchSig2;
24 
26  CDarkSendRelay(CTxIn& vinMasternodeIn, vector<unsigned char>& vchSigIn, int nBlockHeightIn, int nRelayTypeIn, CTxIn& in2, CTxOut& out2);
27 
29 
30  template <typename Stream, typename Operation>
31  inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
37  READWRITE(in);
38  READWRITE(out);
39  }
40 
41  std::string ToString();
42 
43  bool Sign(std::string strSharedKey);
44  bool VerifyMessage(std::string strSharedKey);
45  void Relay();
46  void RelayThroughNode(int nRank);
47 };
48 
49 
50 
51 #endif
#define READWRITE(obj)
Definition: serialize.h:175
vector< unsigned char > vchSig
void RelayThroughNode(int nRank)
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
std::string ToString()
bool Sign(std::string strSharedKey)
bool VerifyMessage(std::string strSharedKey)
vector< unsigned char > vchSig2