Changed calls to isPartialPublicKey, isPublicKey and isPartialSecretKey