The provided key should always be a public key, enforcing this in software provides an extra safety net for users.