Skip to content

Suggestion to add initial Python blockchain implementation to empty Blockchain directory #12819

Open
@Achintya47

Description

@Achintya47

Hi Maintainers 👋,

I noticed that the Blockchain folder in this repository is currently empty except for a basic README.md and an unrelated Diophantine equation file.

We’ve built a Python blockchain implementation from scratch as part of an educational project, and I’d love to propose contributing it as an initial commit to help kickstart this section.

⚙️ What Our Implementation Includes
🔌 A peer-to-peer network using Python’s socket library

🧵 Multithreaded handling of nodes and messages

⛓️ Block structure and chaining logic

⛏️ Basic mining with Proof-of-Work

🧠 Local consensus mechanism (with plans for enhancements)

While the current codebase still needs refactoring and modularization, we believe this version serves as a solid foundation for future contributions and learning.

✅ Why This Belongs in TheAlgorithms
✅ Fully implemented from scratch, aligning with the project’s philosophy

🌐 Promotes open collaboration on decentralized system algorithms

📚 Opens the door to more blockchain-related implementations like:

Digital Signatures
Merkle Trees
and more...

📸 Preview (Snapshots of Running Code)
Image
Image

📝 Next Steps
Once approved, I’ll go ahead and:

Submit a PR with the implementation

Clean up the code as needed to match your guidelines

Remove this issue for clarity

Thanks for your time and for maintaining such a great repository!
Looking forward to your feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis PR modified some existing files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions