From e791ca645c0cae05d2b8d0544143ebdc5722a774 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Wed, 30 Nov 2016 16:42:06 -0500 Subject: [PATCH] Add CAssetID typedef --- src/amount.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/amount.h b/src/amount.h index 5e52f37f23..49fbe0cbaf 100644 --- a/src/amount.h +++ b/src/amount.h @@ -7,7 +7,7 @@ #define BITCOIN_AMOUNT_H #include "serialize.h" - +#include "uint256.h" #include #include @@ -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 output’s coins are derived. + * Each output contains coins from a single asset/currency. + * For the host currency, the similarly-calculated hash of the chain’s 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