Safe key update technology in blockchain