mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
CA: hashAssetIdentifier -> assetEntropy
This commit is contained in:
parent
a25f6c6e08
commit
081b83229e
2 changed files with 4 additions and 4 deletions
|
|
@ -106,7 +106,7 @@ std::string CAssetIssuance::ToString() const
|
|||
str += "CAssetIssuance(";
|
||||
str += assetBlindingNonce.ToString();
|
||||
str += ", ";
|
||||
str += hashAssetIdentifier.ToString();
|
||||
str += assetEntropy.ToString();
|
||||
str += strprintf(", %s", (nAmount.IsAmount() ? strprintf("%d.%08d", nAmount.GetAmount() / COIN, nAmount.GetAmount() % COIN) : std::string("UNKNOWN")));
|
||||
if (!nInflationKeys.IsNull())
|
||||
str += strprintf(", %s", (nInflationKeys.IsAmount() ? strprintf("%d.%08d", nInflationKeys.GetAmount() / COIN, nInflationKeys.GetAmount() % COIN) : std::string("UNKNOWN")));
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ public:
|
|||
// The original asset entropy (combination of Ricardian contract
|
||||
// and outpoint used) which was used to generate the fixed asset
|
||||
// tag and reissuance tokens.
|
||||
uint256 hashAssetIdentifier;
|
||||
uint256 assetEntropy;
|
||||
|
||||
// Both explicit and blinded issuance amounts are supported
|
||||
// (see class definition for CTxOutValue for details).
|
||||
|
|
@ -347,7 +347,7 @@ public:
|
|||
inline void SerializationOp(Stream& s, Operation ser_action)
|
||||
{
|
||||
READWRITE(assetBlindingNonce);
|
||||
READWRITE(hashAssetIdentifier);
|
||||
READWRITE(assetEntropy);
|
||||
READWRITE(nAmount);
|
||||
READWRITE(nInflationKeys);
|
||||
}
|
||||
|
|
@ -358,7 +358,7 @@ public:
|
|||
friend bool operator==(const CAssetIssuance& a, const CAssetIssuance& b)
|
||||
{
|
||||
return a.assetBlindingNonce == b.assetBlindingNonce &&
|
||||
a.hashAssetIdentifier == b.hashAssetIdentifier &&
|
||||
a.assetEntropy == b.assetEntropy &&
|
||||
a.nAmount == b.nAmount &&
|
||||
a.nInflationKeys == b.nInflationKeys;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue