isValid

open fun isValid(data: Array<Byte>, type: PublicKeyType): Boolean

Determines if the given public key is valid or not

Return

true if the block of data is a valid public key, false otherwise

Parameters

data

Non-null block of data representing the public key

type

type of the public key