Update packageManager & add CryptoSwift

This commit is contained in:
vbodinaud
2020-03-01 03:06:01 +01:00
parent 52ea558811
commit b8847bd8a9
4 changed files with 29 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
//
import Foundation
import CryptoSwift
class Block {
var hash: String!
@@ -15,6 +16,6 @@ class Block {
var index: Int!
func generateHash() -> String {
return NSUUID().uuidString.replacingOccurrences(of: "-", with: "")
return data.sha256()
}
}