mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Add CAssetID typedef
This commit is contained in:
parent
e364787b5d
commit
e791ca645c
1 changed files with 12 additions and 1 deletions
13
src/amount.h
13
src/amount.h
|
|
@ -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 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue