CheckMinimalPush

Checks whether pushed data uses the minimal encoding for its opcode.

Synopsis

Declared in <script/script.h>

bool
CheckMinimalPush(
    std::vector<unsigned char> const& data,
    opcodetype opcode);

Return Value

true if data is pushed with the minimal opcode and encoding.

Parameters

NameDescription
dataThe pushed data bytes.
opcodeThe push opcode used to push data.