Added code for isPartialPublicKey, isPartialSecretKey