Bitcoin Core 28.99.0
P2P Digital Currency
|
Go to the source code of this file.
Functions | |
static bool | IsToKeyID (const CScript &script, CKeyID &hash) |
static bool | IsToScriptID (const CScript &script, CScriptID &hash) |
static bool | IsToPubKey (const CScript &script, CPubKey &pubkey) |
bool | CompressScript (const CScript &script, CompressedScript &out) |
unsigned int | GetSpecialScriptSize (unsigned int nSize) |
bool | DecompressScript (CScript &script, unsigned int nSize, const CompressedScript &in) |
uint64_t | CompressAmount (uint64_t n) |
Compress amount. More... | |
uint64_t | DecompressAmount (uint64_t x) |
uint64_t CompressAmount | ( | uint64_t | nAmount | ) |
Compress amount.
nAmount is of type uint64_t and thus cannot be negative. If you're passing in a CAmount (int64_t), make sure to properly handle the case where the amount is negative before calling CompressAmount(...).
Definition at line 149 of file compressor.cpp.
bool CompressScript | ( | const CScript & | script, |
CompressedScript & | out | ||
) |
Definition at line 55 of file compressor.cpp.
uint64_t DecompressAmount | ( | uint64_t | x | ) |
bool DecompressScript | ( | CScript & | script, |
unsigned int | nSize, | ||
const CompressedScript & | in | ||
) |
Definition at line 95 of file compressor.cpp.
unsigned int GetSpecialScriptSize | ( | unsigned int | nSize | ) |
Definition at line 40 of file compressor.cpp.