Some time ago I made a Dapp demo, called nail book (http://ds.bdaily.club). Through block chain technology, prove the ownership of user articles, and build a knowledge commodity platform based on this. Users upload knowledge and articles, price, buyers choose valuable knowledge and articles, pay to reprint.


The vision of this platform is to provide a smooth channel of authorization for authors and content users, guide standardized and reasonable reprinting behavior, and bring more respect and benefits to originators.

Here are some technical points and pitfalls in Dapp development.

0x01

At present, dAPPS are basically started from scratch, and the account system has not been established. Ethereum itself has the concept of an account, so it is necessary to have a DAPP account and ethereum account connected. There are currently some solutions, such as metamask-based one-click login, which does not need to create a separate account. Users can create an account bound to Address after signing the Metamask plug-in and interacting with the backend for verification.



For the specific interaction process, please refer to my article: Smart Contract Development – How to realize one-click login to Dapp

0x02

Dapp interaction currently has Truffle, web3.js, which belong to the front-end JS package. Perhaps illustrating the problem is that interactions with smart contracts currently rely on the front end. But in fact, most of the data processing and maintenance have to be done at the back end, so it is very important to make the development of DAPP more convenient. Here is a thought for reference: smart contract development – how to better interact with the contract

0x03

Let’s talk about the testing environment for smart contracts.

1. To test locally, use Ganache, which starts a private chain and generates accounts for testing. 2. If you want to Test in a public network environment, you can deploy the contract in the Ropsten Test Net environment. For example, stapled contracts are deployed in ethereum’s Ropsten Test Net environment. Install the MetaMask plug-in first, switch to the Ropsten Test Net environment, and click BUY -> Ropsten Test FAUCET to get a free Ethereum Test publish and purchase article.

0x04

As of now, ethereum has nearly 600GB of total data for a full node, and the cost of maintaining a full node is getting higher and higher. It’s important to have a stable and trusted full node, such as infura.io/, but it doesn’t support some JSON-RPC interfaces, such as event_filter.

0x05

As far as this demo is concerned, there are still many things left to do, such as 1. Author’s identity authentication system 2. Articles anchor unique links through digital signatures. 3. Support confirmation of ownership for other digital media types

0x06

Here to complain, this demo is actually the Thunderbolt blockchain contest entries. Thunder judges only looked at the PPT, demo did not see was eliminated, or a little disappointed judges attitude.

0x07

Finally, I would like to promote my blockchain daily, which has been updated to issue 83 and has gained a certain amount of attention on Zhihu and Twitter, hoping to bring some help to those who really learn blockchain.