Constructs from a byte‐vector encoding.

Synopsis

Declared in <script/script.h>

explicit
CScriptNum(
    std::vector<unsigned char> const& vch,
    bool fRequireMinimal,
    size_t const nMaxNumSize = nDefaultMaxNumSize);

Parameters

Name

Description

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.

Created with MrDocs