Update packageManager & add CryptoSwift
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user