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

Name

Description

data

The pushed data bytes.

opcode

The push opcode used to push data.

Created with MrDocs