Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
compressor.cpp
Go to the documentation of this file.
135 // * first, divide the amount (in base units) by the largest power of 10 possible; call the exponent e (e is max 9)
136 // * if e<9, the last digit of the resulting number cannot be 0; store it as d, and drop it (divide by 10)
Definition: script.h:122
Definition: script.h:165
void Set(const T pbegin, const T pend)
Initialize a public key using begin/end iterators to byte data.
Definition: pubkey.h:81
Definition: script.h:162
bool IsToKeyID(CKeyID &hash) const
These check for scripts for which a special case with a shorter encoding is defined.
Definition: compressor.cpp:12
bool IsFullyValid() const
fully validate whether this is a valid public key (more expensive than IsValid()) ...
Definition: pubkey.cpp:206
unsigned int GetSpecialSize(unsigned int nSize) const
Definition: compressor.cpp:79
static uint64_t CompressAmount(uint64_t nAmount)
Definition: compressor.cpp:142
static uint64_t DecompressAmount(uint64_t nAmount)
Definition: compressor.cpp:161
bool Decompress(unsigned int nSize, const std::vector< unsigned char > &out)
Definition: compressor.cpp:88
Definition: script.h:121
A reference to a CScript: the Hash160 of its serialization (see script.h)
Definition: standard.h:22
bool IsToScriptID(CScriptID &hash) const
Definition: compressor.cpp:23
bool Compress(std::vector< unsigned char > &out) const
Definition: compressor.cpp:48
Definition: script.h:100