I wonder: in how many lines of code is it possible to write minimally functional cryptocurrency with blockchain? This thing
https://github.com/skepticoin/skepticoin have ~5000 LOC length. Is it possible to write cryptocurrency in less than 1000 LOC, assuming P2P and cryptography is offloaded to other libraries?
By minimally functional I mean:
-Can create blockchain
-Can mine new blocks with coins
-Can validate blocks
-Can create accounts and check their balance
-Can transfer coins
-Can increase difficulty(can just increment diff counter every x blocks)
I hope I didn't forget anything. Also can cryptocurrency with DAG have smaller code than the one with blockchain? How hard it is to implement DAG or other less conventional ledgers?