2 Star 0 Fork 0

mirrors_jedisct1/libzerocoin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SpendMetaData.h 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
Ian Miers 提交于 2013-07-04 23:21 . libzerocoin initial commit
/**
* @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_ */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_jedisct1/libzerocoin.git
git@gitee.com:mirrors_jedisct1/libzerocoin.git
mirrors_jedisct1
libzerocoin
libzerocoin
master

搜索帮助