Constructors

Synopses

Declared in <script/script.h>

Constructs from an integer value.

explicit
CScriptNum(int64_t const& n);

Constructs from a byte‐vector encoding.

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

Parameters

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.

Created with MrDocs