ブロックチェーンのデータは、どこにあるのでしょうか?
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
ビットコインやイーサリアムなどの仮想通貨(暗号資産)ってブロックチェーンで出来ているんだよね?
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
そもそもブロックチェーンのデータは、どこにあるの?
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
ブロックチェーンのノードを実行している、世界中にある多数の各端末のSSDやHDDが協力して記録しています。
1か所の大きなサーバーに置いてあるのではなく、世界中の端末に置いてあると言うことですね
基本的には、世界中の端末がネットワークを使って同じ情報を持っていると言うことです
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
基本的には?基本的じゃない時があるのかな?
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
厳密に言えば、瞬間ごとのデータは、少し違う時があります
ブロックチェーンの管理は多くの端末ごとのデータが協力して記録しています。もし、異なる情報や改ざんが行われた際には、多数決により正しい情報を決定しています
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
なるほど、ブロックチェーンのデータは各端末の中に合って、照合し合うことで成り立っているのね
51%攻撃
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
![](https://nagi.blog/wp-content/uploads/2022/03/49ef664720433fb37002b605195c5e9b-150x150.png)
あれ?でも多数決だと、悪いデータ(改ざんされたデータ)が51%以上の状態を作り上げられてしまったらどうなるの?
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
![](https://nagi.blog/wp-content/uploads/2022/03/e83fa52eac00d47020c79e84425066c0-150x150.jpg)
いわゆる、51%攻撃と呼ばれるものですね
理論上では可能ではありますが、ビットコインなどの暗号資産はハードルが高いので難しいです
ただ、マイニングのハードルが低いものは、51%攻撃が成立してしまう場合もあるみたいね