From the course: Blockchain Programming in iOS Using Swift

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Creating node models

Creating node models

- [Instructor] In the last section, you learned how you can take your blockchain to the Cloud by using the Vapor framework. But even though we were able to take it to the Cloud, it was a more of a centralized server that was running. And the whole point of blockchain is to run as decentralized. So now in this section we're going to see how we can make this a decentralized application. Now please note that I'm not going to be hosting this into actual multiple servers on the public environment, I'm just going to show you how you can do it by running Vapor on the different ports. But obviously, in your actual application, you have to deploy it on different servers, and then you will have to have the ability for people to connect to those servers and run their own blockchain, so that it can grow, and grow, and grow, and grow. Unless you have a private blockchain and you have, maybe, 100 servers that are running. And they are doing mining and the proof of work, etc. For this to work, we…

Contents