MCPcopy Create free account
hub / github.com/ElementsProject/elements / CalculateAsset

Function CalculateAsset

src/issuance.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void CalculateAsset(CAsset& asset, const uint256& entropy)
37{
38 static const uint256 kZero = uint256S("0x0000000000000000000000000000000000000000000000000000000000000000");
39 // H_a : asset tag
40 // E : entropy
41 // H_a = H( E || 0 )
42 std::vector<uint256> leaves;
43 leaves.reserve(2);
44 leaves.push_back(entropy);
45 leaves.push_back(kZero);
46 asset = CAsset(ComputeFastMerkleRoot(leaves));
47}
48
49void CalculateReissuanceToken(CAsset& reissuanceToken, const uint256& entropy, bool fConfidential)
50{

Callers 15

TxToUnivFunction · 0.85
VerifyAmountsFunction · 0.85
BlindPSBTFunction · 0.85
UpdateFromArgsMethod · 0.85
CLiquidV1ParamsMethod · 0.85
UpdateFromArgsMethod · 0.85
AppendInitialIssuanceFunction · 0.85
BlindTransactionFunction · 0.85
GetIssuanceAssetsMethod · 0.85
walletcreatefundedpsbtFunction · 0.85
FillBlindsFunction · 0.85

Calls 5

uint256SFunction · 0.85
CAssetClass · 0.85
ComputeFastMerkleRootFunction · 0.85
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected