Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
void CConfidentialValue::SetToAmount(const CAmount amount)
15
{
16
vchCommitment.resize(nExplicitSize);
17
vchCommitment[0] = 1;
18
WriteBE64(&vchCommitment[1], amount);
19
}
20
21
std::string CAssetIssuance::ToString() const
22
{
Callers
8
GetUnsignedTx
Method · 0.80
CInputCoin
Method · 0.80
SignPSBT
Method · 0.80
FUZZ_TARGET_INIT
Function · 0.80
initialize_simplicity
Function · 0.80
initialize_simplicity_tx
Function · 0.80
ConstructTransaction
Function · 0.80
Unserialize
Method · 0.80
Calls
2
WriteBE64
Function · 0.50
resize
Method · 0.45
Tested by
3
FUZZ_TARGET_INIT
Function · 0.64
initialize_simplicity
Function · 0.64
initialize_simplicity_tx
Function · 0.64