public key use in class