added basic public key functions