Reduce our JoinSplitty-ness
This commit is contained in:
@@ -5,21 +5,10 @@
|
|||||||
#include "prf.h"
|
#include "prf.h"
|
||||||
#include "sodium.h"
|
#include "sodium.h"
|
||||||
|
|
||||||
#include "zcash/util.h"
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <boost/foreach.hpp>
|
|
||||||
#include <boost/format.hpp>
|
|
||||||
#include <boost/optional.hpp>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "tinyformat.h"
|
|
||||||
#include "sync.h"
|
|
||||||
#include "amount.h"
|
|
||||||
|
|
||||||
#include "librustzcash.h"
|
#include "librustzcash.h"
|
||||||
#include "streams.h"
|
|
||||||
#include "version.h"
|
|
||||||
|
|
||||||
namespace libzcash {
|
namespace libzcash {
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
#include "Note.hpp"
|
#include "Note.hpp"
|
||||||
#include "IncrementalMerkleTree.hpp"
|
#include "IncrementalMerkleTree.hpp"
|
||||||
#include "NoteEncryption.hpp"
|
#include "NoteEncryption.hpp"
|
||||||
|
|
||||||
#include "uint256.h"
|
#include "uint256.h"
|
||||||
#include "uint252.h"
|
#include "uint252.h"
|
||||||
|
|
||||||
@@ -27,19 +26,15 @@ static constexpr size_t GROTH_PROOF_SIZE = (
|
|||||||
typedef std::array<unsigned char, GROTH_PROOF_SIZE> GrothProof;
|
typedef std::array<unsigned char, GROTH_PROOF_SIZE> GrothProof;
|
||||||
typedef boost::variant<PHGRProof, GrothProof> SproutProof;
|
typedef boost::variant<PHGRProof, GrothProof> SproutProof;
|
||||||
|
|
||||||
class JSInput {
|
class JSInput { };
|
||||||
};
|
|
||||||
|
|
||||||
class JSOutput {
|
class JSOutput { };
|
||||||
};
|
|
||||||
|
|
||||||
template<size_t NumInputs, size_t NumOutputs>
|
template<size_t NumInputs, size_t NumOutputs>
|
||||||
class JoinSplit {
|
class JoinSplit { };
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef libzcash::JoinSplit<ZC_NUM_JS_INPUTS,
|
typedef libzcash::JoinSplit<ZC_NUM_JS_INPUTS, ZC_NUM_JS_OUTPUTS> ZCJoinSplit;
|
||||||
ZC_NUM_JS_OUTPUTS> ZCJoinSplit;
|
|
||||||
|
|
||||||
#endif // ZC_JOINSPLIT_H_
|
#endif // ZC_JOINSPLIT_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user