> For the complete documentation index, see [llms.txt](https://docs.yemreak.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yemreak.com/arsiv/tech/blockchain.md).

# Blockchain

## ❔ Blockchain Nedir

Peer to peer (aracısız) mantığını güden bu yapıda, bilgiler zincir olarak saklanır. Her bir bilgi bir öncekinin hash'ini (kimliğini) tutar.

## ⛓ Zincir Yapısının Korunması

Dışarıdan müdahale ile yapılan Olası bir veri değişikliğinde zincir yapısı bozulur.

* Hash işlemi, bloğun içerdiği bilgilerin hepsini ele alarak hesaplanır ve veri değişmesi kimliğini değiştirir. Blok kullanılırken hesaplanan yeni kimlik ile eski kimlik birbirine uymaz.
* Kimlik değeri bir şekilde elden atanır ise, bir sonrasındaki blokta tutulan şu anki bloğumuzun kimliği ile yeni kimlik uyuşmaz ve zincir yapısı bozulur.
* Zincirin bütünü değiştirilirse; zincir diğer kopyalarına bakılır ve değişim %50'den fazla baskınlığa sahip değilse kabul edilmez ve eski yapıya dönülür.
* Değiştirilen zincirin çok sayıda kopyalanmasını engellemek için blockchain'in blok üretme zorluğu vardır ve "**Proof of Work**" diye adlandırılır.

## 🥴 Karma Notlar

* Blockchain sistemini kullanan platformlarda (bitcoin gibi), hesapta para değeri saklanmaz. Her bir zincir incelenir ve sizin net para değeriniz hesaplanır.
* Her bir işlem sıraya alınır ve belli süre içerisinde blok yapım sayısı sınırlandırılmıştır. (her 10dk en fazla 1 blok gibi)

## 👨‍💻 Örnek Algroitma

JavaScript ile kodladığım örnek kod için [buraya](https://github.com/yedhrab/YBlockchain) tıklayabilir veya nasıl yapıldığını anlatan video serisine [buradan](https://www.youtube.com/watch?v=zVqczFZr124\&list=PLzvRQMJ9HDiTqZmbtFisdXFxul5k0F-Q4) ulaşabilirsin.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.yemreak.com/arsiv/tech/blockchain.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
