https://github.com/mcbagz/LogicGates
Logical gates in Python for different scenarios
https://github.com/mcbagz/LogicGates
Last synced: about 1 year ago
JSON representation
Logical gates in Python for different scenarios
- Host: GitHub
- URL: https://github.com/mcbagz/LogicGates
- Owner: mcbagz
- Created: 2023-10-16T01:24:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T03:41:57.000Z (over 2 years ago)
- Last Synced: 2024-11-08T05:39:56.539Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 34.2 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-bitvm - LogicGates: Logical gates in Python for different scenarios on BitVM (Phython)
README
# LogicGates
The intention of this repo is to build circuits with logic gates in Python for the inteded use in BitVM.
For a simple explanation and how-to, check out this video and example.ipynb :
https://www.youtube.com/watch?v=cnijtOVRwgg&ab_channel=BagzTech
HorseMove is the beginning of implementing chess rules.
Sha256Parts includes smaller aspects of the Sha256 hashing algorithm, which could be combined with other Bitcoin opcodes to recreate the function.
PDH is the Poorly Designed Hashing algorithm. It takes a 32-bit input and creates a 32-bit hash. My intention is to use this to build unsecure proof of concepts of merkle trees and other tools on Bitcoin. The reason this is 32 bits in input and output is that arithmetic can be done natively in Bitcoin script with 32-bit integers.