In write_public_key() and write_key_state(), there were left-over checks for result, that were effectively dead code after the last refactoring. Remove those.
In write_public_key() and write_key_state(), there were left-over checks for result, that were effectively dead code after the last refactoring. Remove those.