change PK and SK to PublicKey and SecretKey