From 7bc411c6ad9445e12e25f194d5b7baa25fc63ed4 Mon Sep 17 00:00:00 2001 From: Pasquale Ambrosini Date: Fri, 12 Oct 2018 01:02:55 +0200 Subject: [PATCH] Updated Kerl syntax --- IotaKit.podspec | 2 +- Sources/IotaKit/Pow/Kerl.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/IotaKit.podspec b/IotaKit.podspec index 7702f30..e0fcd45 100644 --- a/IotaKit.podspec +++ b/IotaKit.podspec @@ -3,7 +3,7 @@ Pod::Spec.new do |s| s.swift_version = '4.2' s.name = "IotaKit" - s.version = "0.7.2" + s.version = "0.7.3" s.summary = "The IOTA Swift API Library" s.description = <<-DESC diff --git a/Sources/IotaKit/Pow/Kerl.swift b/Sources/IotaKit/Pow/Kerl.swift index 3af3d8f..1a4ec7d 100644 --- a/Sources/IotaKit/Pow/Kerl.swift +++ b/Sources/IotaKit/Pow/Kerl.swift @@ -15,7 +15,8 @@ class Kerl: CurlSource { fileprivate static let BYTE_HASH_LENGTH = BIT_HASH_LENGTH / 8 fileprivate static let RADIX: Int64 = 3 - fileprivate static let MAX_TRIT_VALUE: Int64 = (RADIX - 1) / 2, MIN_TRIT_VALUE = -MAX_TRIT_VALUE + fileprivate static let MAX_TRIT_VALUE: Int64 = (RADIX - 1) / 2 + fileprivate static let MIN_TRIT_VALUE: Int64 = -MAX_TRIT_VALUE fileprivate var keccak: PASHA3! fileprivate var byte_state: [UInt8] = [] fileprivate var trit_state: [Int] = []