finish deterministic getPublicKey