Remove xcodeproj
This commit is contained in:
20
Sources/Blockchain/Models/Block.swift
Normal file
20
Sources/Blockchain/Models/Block.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Block.swift
|
||||
// Blockchain
|
||||
//
|
||||
// Created by Victor BODINAUD on 27/02/2020.
|
||||
// Copyright © 2020 Victor BODINAUD. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
class Block {
|
||||
var hash: String!
|
||||
var data: String!
|
||||
var previousHash: String!
|
||||
var index: Int!
|
||||
|
||||
func generateHash() -> String {
|
||||
return NSUUID().uuidString.replacingOccurrences(of: "-", with: "")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user