From 9098920f0afeed956118d46585148bc34ea7f125 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 30 Oct 2021 19:05:34 -0700 Subject: feat(wpcarro/scratch): create a proof-of-concept blockchain server > You cannot get educated by this self-propagating system in which people study > to pass exams, and teach others to pass exams, but nobody knows anything. You > learn something by doing it yourself, by asking questions, by thinking, and by > experimenting. > - Richard Feynman In the spirit of learning by doing, I decided to implement a simple blockchain server. More work remains, but I'm tired after working on this for ~2-3h. I'd like to reimplement this from memory using a statically typed language like Haskell. I'd also like to implement node discovery (https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery) because that is still something I don't quite understand. But I'm signing-off for now... Change-Id: I74f424e7f52ffbf81eaad420d7d5205da66d33b5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4802 Tested-by: BuildkiteCI Reviewed-by: wpcarro Autosubmit: wpcarro --- users/wpcarro/scratch/blockchain/setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 users/wpcarro/scratch/blockchain/setup.py (limited to 'users/wpcarro/scratch/blockchain/setup.py') diff --git a/users/wpcarro/scratch/blockchain/setup.py b/users/wpcarro/scratch/blockchain/setup.py new file mode 100644 index 000000000000..e5310565dbbd --- /dev/null +++ b/users/wpcarro/scratch/blockchain/setup.py @@ -0,0 +1,10 @@ +from setuptools import setup + +setup( + name='main', + version='0.0.1', + py_modules=['main'], + entry_points={ + 'console_scripts': ['main = main:run'] + }, +) -- cgit 1.4.1