We are excited to announce the launch of Ultrain’s mainnet monitoring page! Click the following link to see the operational status of our permitted mainnet including mining profitability, real-time consensus visualization, and existing mainnet users: https://www.ultrain.io/miner-registration

The addition of this visibility feature will further explain Ultrain’s consensus procedure and business model. Please visit the Mainnet Monitoring service (link provided above) and read the supporting article at https://medium.com/ultrain-chain/introduction-to-ultrains-economic-model-74920e1c687f. These resources assist us to comprehend Ultrain’s token economic system, and understand how Ultrain’s model is based on a notion of servicing and empowering the fundamentals of the real economy.

Ultrain business development model is dependable and scalable; as the demand for blockchain services increases, Ultrain’s economic system will grow accordingly to meet the interests of early adopters, as well as ensure the healthy development of the entire business ecosystem.

Since the call went out for Ultrain’s second round of testnet miner recruitment, we received many applications from all over the world. Thank you all once again for the great interest!
The following is the list of successful applicants – welcome to the Ultrain testnet family and enjoy your preview of Ultrain’s technology.

At 9:00 pm on September 2nd, the Chief Cryptologist Husen Wang of Ultrain launched an online AMA (Ask Me Anything) event in the community of Ultrain, so that everyone can be clearer understanding of the details of Ultrain's zero-knowledge proof and privacy protection.

1.Q: The integration betweenzero-knowledge-proof and existing commercial pain points?
A: zero-knowledge-proof can be applied with manyscenarios.
In public chain, companies or individuals arewilling to store data digest as proof-of-existence, rather than submitting theplaintext directly, for the reason that the public chain as a publiclyaccessible database will bring huge Risk of data leakage, which may be thecompany's products, volume, cash flow, location, or personal information suchas purchase records, time and amount, preference.
For example, if WalMart uses public chain forsettlement or simple provenance, it can save a lot of cost and improvecredibility compared with federated chain such as IBM hyperledger, but withoutprivacy protection, all WalMart's daily comercial activities will be completelyexposed to competitors. Taking wine as an example, the number of registrationson blockchain is basically same with the quantity of purchased ones, andcompetitors can very easily identify which wines are selling well. If thesettlement is also done online, the transaction amount and profit margin can becalculated, and then the detailed cash flow with the upper and lower supplychains. These are all simple data analysis techniques.
The zero-knowledge-proof can greatlyalleviate the above problems. It not only protects the product details, butalso the cash flow of all transactions.

2.Q: We are now searching, shopping, and eventalking about the APP records, how to solve the data privacy issues?
A: At present, using the Internet these days,those who have no awareness of privacy protection, is basically streaking. Allbehaviors are accurately monitored by major service providers such asGoogle/Facebook/Alibaba/Tencent, and even small apps can steal the behaviorsand tendencies of various users. All of this is to better understand the user,accurately push the advertisments, but also bring about data abuse, tracking,leackage, or even political use and misguidance.
The reason for this phenomenon is that thegoverments is not clear about the privacy regulations and implementation. Forexample, on Android phones, some powerful application vendors require usershave to grant certain permissions such as contacts and photos, read and writeaccess. The cost of data theft and monitor is too low, which makes it difficultto enforce a standardized user authorization access system.
However, in China, as the domestic systembecoming in line with foreign countries, and domestic manufacturers aregradually moving abroad, they may gradually become more standardized, and mayrequire more standardized use and acquisition of user information. For example,it is required that user information can only be obtained and retained in aminimal amount, cannot be shared without permission.
··

3.Q: What are the advantages of the Ultrain'szero-knowledge-proof system? How do you achieve true anonymity and privacyprotection?
A: The Ultrain zero-knowledge-proof system hasfour main advantages: low-cost package around serveral thounds usd per year(Ethereum is about 6 usd per transaction), which can easily support anybusiness development kit, one-click proof verification, support for ERC20 ,ERC721 and other templates. Users basically only need to clearly definethe business logic, and can easily use it without knowing any technical detailof zero-knowledge-proof. It now supports the user's personal data, such asproof of product information (such as the jewels, shoes, medical records,etc.), the anonymous transfer of assets (can be used to achieve cash flowtransfer scenarios, such as Auction).

4.Q: Does the Ultrain zksnark have an example,how small can the proof size be?
A: We showed two scenarios on github, namelyjewelry and cash flow.Https://github.com/wanghs09/zkp9ff2b8d9/wikiYou can go to our related website to see andask questions.The proof size is about 256 bytes.

If you have more questions about zero-knowledge proof and privacy protection, you can add ultra-in customer service to submit the questions and ask the project team to find out more about Ultrain.

Ultrain, together with Mars Finance, launched the first offline event for the Super Star Dapp Contest in Beijing on August 10. The event attracted 15 teams of developers, with each of them introduced the technical highlights of their projects and DApp usage scenarios.

As the world’s leading business chain, Ultrain has long been committed to the construction of a complete ecological community. Only with the combination of underlying technological infrastructure and ecological applications, and the resonation of developers and users, will the industry break down the walls and burst out with power that everyone can truly feel. Good developers are the cornerstone of the block chain world. In the context of the above, Ultrain and Mars Finance jointly organized the Super Star Dapp Contest, to provide better presentation opportunities and more support for outstanding developers. In just a few weeks, the contest has brought together top geeks from all over the country.

Emma Liao, co-founder of Ultrain

The offline event is reviewed by Zhao Lei, director of Huobi Lab Incubator, He Huan, founder of Nanshan Accelerator, Kyle Lu, founder of dapp.com, Cai Minghui, founder of DAPPX, as well as Guo Rui, Emma Liao and Li Ning, co-founders of Ultrain. The jury made a comprehensive evaluation of the technical, product, commercial and other strengths of the teams’ work, and eventually picked out the top three winning teams. Their products are: a tool called ChainIDE, a game called crypto Three Kingdoms, and a pet rescue platform called Where The Dogs Go x Wandering Baby.

According to Wu Xiao, founder of ChainIDE, this tool is the world’s first multi-chain smart contract Integrated Development Environment (IDE), a product designed for agile development, able to help developers optimize the initial design environment process immediately, thereby saving costs. The tool has been successfully used in Libra, the first IDE to connect to Facebook Libra Move.

Wu Xiao, founder of ChainIDE

The second prize goes to crypto Three Kingdoms, a game developed overseas. Shi Pu, the founder, made a special trip back to Beijing from New York, working overtime for three days, just to show the best at the contest. As a game with the whole assets on chain, it is also a real game of non-gambling RPG. In this game, players aim to earn rare props and the Three Kingdom tokens by fighting NPC or other players, to upgrade their heroes and the equipment, meanwhile receiving dividends through a systematic mechanism.

Shi Pu, founder of crypto Three Kingdoms

The jury

The third award-winning project is the Wandering Baby, launched by Li Chen. It is a donation platform designed for stray dogs. With the help of the block chain’s openness and transparency, the identity of stray dogs and the relationship with their guardians are verified, and donations are recorded on chain as tokens. The entry and consumption records of each dog’s accounts are tracked in real time. While tokens are used to convert the donation money, and a certain amount of them are deducted as the operating expenses for the sustainable development of the platform. Where The Dogs Go has gained millions of monthly active users and five offline sites to divert to the Wandering Baby.
In addition, “Love on Chain” ,“Meal Introduction”, “Fanclub“ won the innovation award, the special award and the encouragement award respectively. Ultrain has given a huge bonus to the winning projects and will also guarantee all-round support in the future.

“The original aim of the Superstar Project is to gather a group of like-minded developers to build quality applications,” said Li Ning, CTO and co-founder of Ultrain. “Each contest is a brand-new start. We call on more people to all in block chain technology and make unremitting efforts to jointly establish a sustainable ecosystem.”

We believe that the three teams selected by the professional jury are high-quality projects with real sustainable operational capacity, willingness and rigid application value. With the continuous expansion of the block chain influence, and the continuous precipitation and development of technology, more and more top Dapps like this will cut a figure, and gradually develop into flagships of the industry. Ultrain will also continue to work with the media, developers’ communities, investment institutions and exchanges and other peers to further strengthen the landing of block chain technology and build a huge sustainable ecosystem.

There are two Dapps to be written, one is MiningDapp, the other is UDapp. We use the Javascript SDK U3.js to write the DApps. To be simple, we create the two DApps in one project.

Written by DApp

In WebStorm, create a new project -> Node.js Express App-> Template select Pug (Jade); modify the project name to CarbonDApp;

Click ‘Create’ to create a project

Import project dependent class library

Copy all the directories in node_modules in CarbonProject to the node_modules directory of CarbonDApp, and repeat the directory skipping without copying;
Copy the CarbonDApp/node_modules/u3.js/dist/u3.js file to the CarbonDApp/public/javascripts directory.

Modify the DApp server port

Since the default 3000 port is already occupied, you need to modify the server port of the DApp.

When sending data to the energy smart contract, you need to hold the private key of the account before you can sign and send it. In order to simplify the programming, the private key is directly written to the webpage. In the actual program, the private key needs to be protected and hidden.

To simplify the writing, the Bob and tom DApp programs are written directly to a page. Actually, they should be two DApp program instances, which are running on two devices respectively.

Now our energy-saving equipment can already send data to the smart contract, and after the energy smart contract receives the data, it will pass the data to the operator server, and the operator server will call the energy smart contract again to exchange carboncoin. So we need to establish EnergyServer;

Step3： EnergyServer

Establish event monitor and handle events

In this section, we will deal with the above calorific value data upload event.

1.1 Establish listener event server code

In the bin directory of the CarbonDApp project, create a new file msgBroker.js and enter the following code.

The code establishes a service on port 3002. After the energy-saving device uploads its calorific value, the smart contract will send the energy-saving device to the service to upload the calorific value data. The service calls the exchangeCarbonCoin method of the energy smart contract to exchange the CarbonCoin.

1.2 Establish a listener event server startup script

Open the CarbonDApp/package.json file and add the following code to the scripts property: "event": "node ./bin/msgBroker"

1.3 Start the listening server

Refresh the npm window with the ‘event’ option

Double-click event to complete server startup

1.4 Register event monitoring mechanism on the chain

Query the internal network address of the machine through the ifconfig command, for example: 10.20.8.32

In the CarbonProject/test directory, create the registerEvent.js file; enter the following code in the file

Note that the registered address is modified to be the internal network address of the machine, and 127.0.0.1 cannot be used.
Run the event register test case to complete the event registration;

1.5 Test calorie value for CarbonCoin function

Visit http://127.0.0.1:3001/mining.html page, every 30 seconds, both bob and tom will randomly send a random value between 15000 and 20000 as the calorific value to convert the smart contract to CarbonCoin;
Visit and refresh the http://127.0.0.1:3001/index.html page, you can find that the CarbonCoin account of bob and tom is increasing every 30 seconds;

Step4：Improve DApp functionality

Add transfer function

After the energy-saving equipment acquires CarbonCoin, it can sell CarbonCoin to the enterprise, such as airlines, etc. The simple embodiment is that the equipment account can be transferred to the corporate company account;

Visit: http://127.0.0.1:3001/index.html, click the "Transfer to the airline C" button, wait for a period of time (up to about 10 seconds, confirm the time for the Ultrain transaction), the following prompt appears, indicating the transfer success.

Add a company to convert CarbonCoin to a charity point function

By converting CarbonCoin into charitable points, the company makes its own contribution to reducing carbon emissions and enhances its reputation:

Visit: http://127.0.0.1:3001/index.html, click the "Buy Charity Points" button, wait for a period of time (up to about 10 seconds, confirm the time for the Ultrain transaction), the following prompt appears, indicating that the points are successfully redeemed. At the same time, you can see the number of CarbonCoins destroyed in the CarbonCoin destruction account at the bottom of the page.

Query the public welfare points exchange history

By enquiring the redemption history of charity points, we can establish a ranking of corporate charity points.

3.1 Creating a page

In the CarbonDApp/public/ directory, create a new leaderboard.html and enter the following code:

This tutorial system describes how to write an end-to-end web version of the DApp application. Although it has been simplified in the process of writing, it generally describes the overall picture of DApp application development, developers can do the basis of this framework. Enrich and improve your DApp application.

About developing DApp on iOS and Android, you can integrate u3.js into the corresponding hybrid Native development framework, and the principle is the same as the web version DApp.