Add CAssetID typedef

This commit is contained in:
Gregory Sanders 2016-11-30 16:42:06 -05:00
parent e364787b5d
commit e791ca645c

View file

@ -7,7 +7,7 @@
#define BITCOIN_AMOUNT_H
#include "serialize.h"
#include "uint256.h"
#include <stdlib.h>
#include <string>
@ -19,6 +19,17 @@ static const CAmount CENT = 1000000;
extern const std::string CURRENCY_UNIT;
/**
* Native Asset Issuance
*
* An asset identifier tag, a 256 bits serialized hash (sha256) defined
* by the issuance transaction from which the outputs coins are derived.
* Each output contains coins from a single asset/currency.
* For the host currency, the similarly-calculated hash of the chains genesis
* block is used instead.
**/
typedef uint256 CAssetID;
/** No amount larger than this (in satoshi) is valid.
*
* Note that this constant is *not* the total money supply, which in Bitcoin