naivecoin
naivecoin copied to clipboard
A tutorial for building a cryptocurrency
Hi, thank you for the naivecoin and naivechain tutorials! In the tutorial, when creating the wallet, generating a private key, this is basically how that user will interact with the...
I followed the Readme and type below 2 commands but encountered error: curl -X POST http://localhost:3001/mineBlock curl -H "Content-type: application/json" --data '{"address": "04bfcab8722991ae774db48f934ca79cfb7dd991229153b9f732ba5334aafcd8e7266e47076996b55a14bf9913ee3145ce0cfc1372ada8ada74bd287450313534b", "amount" : 35}' http://localhost:3001/mineTransaction
Hello! If you are here, you must have completed the tutorial :) Here are some ideas of where to go from now... In my opinion! Please share your ideas below...
https://github.com/lhartikk/naivecoin/blob/35237fbdedd703126bf9baea1d335b9bc2e12fb4/src/transaction.ts#L162 Why is the equality between the unspent transaction id and the new transaction uxto reference id being checked for twice? Why can't you just do uTxO.txOutId === txIn.txOutId instead...
look at the location : **//must return false** **return false;** ``` const hasValidHash = (block: Block): boolean => { if (!hashMatchesBlockContent(block)) { console.log('invalid hash, got:' + block.hash); return false; }...
This happened when i tried to mine a block in naivecoin-vue frontpage. The block number was 11 and I tried to add a block by mining. (https://user-images.githubusercontent.com/31149915/37551904-23df1ae4-29e5-11e8-88ba-92952f72c348.png) The following error...
The current version of code actually does not work. ): The issue is related with the Elliptic version required in package.json. The `npm install` command will try to install "^6.4.0"...
Hi @lhartikk , after running npm install, npm start the server is non-responsive to curl commands. Has something changed between your tutorial code and instructions on how to interact with...
Hello @lhartikk I am newbie and i have downloaded your source code and able to make nodes working and apis mentioned in Naive-chain tutorial. But now when i moved forward...
Hi and thanks for this naive and very elegant proof of concept. How much work do you think is needed to go from this POC to a fully working bitcoin...