Constructors
Declared in <script/script.h>
Constructs from an integer value.
explicit
CScriptNum(int64_t const& n);
» more...
Constructs from a byte-vector encoding.
explicit
CScriptNum(
std::vector<unsigned char> const& vch,
bool fRequireMinimal,
size_t const nMaxNumSize = nDefaultMaxNumSize);
» more...
| Name | Description |
|---|---|
| n | Initial value. |
| vch | Little-endian, sign-magnitude byte encoding of the number. |
| fRequireMinimal | Whether to reject non-minimal encodings. |
| nMaxNumSize | Maximum allowed size of vch in bytes. |