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

Method SetToAmount

src/primitives/confidential.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void CConfidentialValue::SetToAmount(const CAmount amount)
15{
16 vchCommitment.resize(nExplicitSize);
17 vchCommitment[0] = 1;
18 WriteBE64(&vchCommitment[1], amount);
19}
20
21std::string CAssetIssuance::ToString() const
22{

Callers 8

GetUnsignedTxMethod · 0.80
CInputCoinMethod · 0.80
SignPSBTMethod · 0.80
FUZZ_TARGET_INITFunction · 0.80
initialize_simplicityFunction · 0.80
initialize_simplicity_txFunction · 0.80
ConstructTransactionFunction · 0.80
UnserializeMethod · 0.80

Calls 2

WriteBE64Function · 0.50
resizeMethod · 0.45

Tested by 3

FUZZ_TARGET_INITFunction · 0.64
initialize_simplicityFunction · 0.64
initialize_simplicity_txFunction · 0.64