Skip to content

Feat: Add blockchain data structure#2175

Open
hanibhat wants to merge 2 commits into
trekhleb:masterfrom
hanibhat:feat/blockchain
Open

Feat: Add blockchain data structure#2175
hanibhat wants to merge 2 commits into
trekhleb:masterfrom
hanibhat:feat/blockchain

Conversation

@hanibhat
Copy link
Copy Markdown

What

This PR adds a blockchain data structure implementation with blocks, transactions, mining, chain validation, balance lookup, and transaction history lookup.

Why

A blockchain is a useful applied example of several data structure ideas working together:

  • A chain-like structure where each node points back to prior state.
  • Hashing for integrity checks.
  • Maps for efficient balance and transaction indexes.
  • Queues/lists for pending transactions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant