6#ifndef BITCOIN_COMPRESSOR_H
7#define BITCOIN_COMPRESSOR_H
64 template<
typename Stream>
76 template<
typename Stream>
78 unsigned int nSize = 0;
100 template<
typename Stream,
typename I>
void Ser(Stream&
s, I val)
104 template<
typename Stream,
typename I>
void Unser(Stream&
s, I& val)
Serialized script, used inside transaction inputs and outputs.
An output of a transaction.
A Span is an object that can refer to a contiguous sequence of objects.
Implements a drop-in replacement for std::vector<T> which stores up to N elements directly (without h...
bool DecompressScript(CScript &script, unsigned int nSize, const CompressedScript &in)
bool CompressScript(const CScript &script, CompressedScript &out)
uint64_t DecompressAmount(uint64_t nAmount)
uint64_t CompressAmount(uint64_t nAmount)
Compress amount.
unsigned int GetSpecialScriptSize(unsigned int nSize)
static const int MAX_SCRIPT_SIZE
void Unser(Stream &s, I &val)
void Ser(Stream &s, I val)
Compact serializer for scripts.
void Unser(Stream &s, CScript &script)
static const unsigned int nSpecialScripts
make this static for now (there are only 6 special scripts defined) this can potentially be extended ...
void Ser(Stream &s, const CScript &script)
wrapper for CTxOut that provides a more compact serialization
FORMATTER_METHODS(CTxOut, obj)