CPubKey::ValidSize

Check whether a byte vector has a valid public key length for its header byte.

Synopsis

Declared in <pubkey.h>

static
bool
ValidSize(std::vector<unsigned char> const& vch);

Return Value

true if the vector's length matches the length implied by its first byte.

Parameters

NameDescription
vchThe candidate serialized public key.