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

Method SetToAsset

src/primitives/confidential.cpp:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <tinyformat.h>
5
6void CConfidentialAsset::SetToAsset(const CAsset& asset)
7{
8 vchCommitment.clear();
9 vchCommitment.reserve(nExplicitSize);
10 vchCommitment.push_back(1);
11 vchCommitment.insert(vchCommitment.end(), asset.begin(), asset.end());
12}
13
14void CConfidentialValue::SetToAmount(const CAmount amount)
15{

Callers 3

GetUnsignedTxMethod · 0.80
CInputCoinMethod · 0.80
SignPSBTMethod · 0.80

Calls 6

clearMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected