2 * @file SpendMetaData.h
4 * @brief SpendMetaData class for the Zerocoin library.
6 * @author Ian Miers, Christina Garman and Matthew Green
9 * @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
10 * @license This project is released under the MIT license.
13 #ifndef SPENDMETADATA_H_
14 #define SPENDMETADATA_H_
16 #include "../uint256.h"
17 #include "../serialize.h"
20 namespace libzerocoin {
22 /** Any meta data needed for actual bitcoin integration.
23 * Can extended provided the getHash() function is updated
28 * Creates meta data associated with a coin spend
29 * @param accumulatorId hash of block containing accumulator
30 * @param txHash hash of transaction
32 SpendMetaData(uint256 accumulatorId, uint256 txHash);
35 * The hash of the block containing the accumulator CoinSpend
36 * proves membership in.
38 uint256 accumulatorId; // The block the accumulator is in
39 /**Contains the hash of the rest of transaction
40 * spending a zerocoin (excluding the coinspend proof)
42 uint256 txHash; // The Hash of the rest of the transaction the spend proof is n.
43 // Allows us to sign the transaction.
46 READWRITE(accumulatorId);
51 } /* namespace libzerocoin */
52 #endif /* SPENDMETADATA_H_ */