Identity authentication method and system for blockchain