From the course: Blockchain Programming in iOS Using Swift

Unlock this course with a free trial

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

Developing blockchain models

Developing blockchain models

- [Instructor] In this lecture, we will be implementing the models that will be responsible for creating our blockchain. So we'll be looking at the transaction model, the blockchain model, as well as a block model. Now, I'm going to create all of these things in Swift Playgrounds for macOS. Now, why am I using macOS and not iOS? Well, there are some helpful tools as well as APIs that we can use to create the SH, sha, basically, SHA-256 hash, which is available in macOS, but we'll have to do a little bit extra to do it on iOS, which we'll see later on. So let's go ahead and start Xcode, and go ahead and say New, Playground. And you can see that you can also create a playground for macOS, so that's what I'm gonna select, instead of the iOS, so go ahead and select macOS, and then just select a blank, empty playground. I'm going to call this Blockchain, and I'm going to put it in a lecture. Let's go ahead and, over here. Okay, so there we go. So we have a playground macOS, and currently…

Contents