代码拉取完成,页面将自动刷新
/**
* @file SpendMetaData.h
*
* @brief SpendMetaData class for the Zerocoin library.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This project is released under the MIT license.
**/
#ifndef SPENDMETADATA_H_
#define SPENDMETADATA_H_
#include "bitcoin_bignum/uint256.h"
#include "bitcoin_bignum/serialize.h"
using namespace std;
namespace libzerocoin {
/** Any meta data needed for actual bitcoin integration.
* Can extended provided the getHash() function is updated
*/
class SpendMetaData {
public:
/**
* Creates meta data associated with a coin spend
* @param accumulatorId hash of block containing accumulator
* @param txHash hash of transaction
*/
SpendMetaData(uint256 accumulatorId, uint256 txHash);
/**
* The hash of the block containing the accumulator CoinSpend
* proves membership in.
*/
uint256 accumulatorId; // The block the accumulator is in
/**Contains the hash of the rest of transaction
* spending a zerocoin (excluding the coinspend proof)
*/
uint256 txHash; // The Hash of the rest of the transaction the spend proof is n.
// Allows us to sign the transaction.
IMPLEMENT_SERIALIZE
(
READWRITE(accumulatorId);
READWRITE(txHash);
)
};
} /* namespace libzerocoin */
#endif /* SPENDMETADATA_H_ */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。