How blockchain encryption works