change public key from String to byte array