Skip to content

Instantly share code, notes, and snippets.

View Arumankumang's full-sized avatar

Aruman kumang Arumankumang

  • Yuoi
  • Kuninang
  • 17:59 (UTC -12:00)
View GitHub Profile
@Arumankumang
Arumankumang / Blockchain.py
Last active September 11, 2024 17:15 — forked from hoangsonww/Blockchain.py
A basic blockchain structure in Python with proof-of-work consensus, transaction handling, and wallet functionalities.
import hashlib
import json
from time import time
import binascii
from collections import OrderedDict
from uuid import uuid4
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import serialization
from cryptography.exceptions import InvalidSignature