Skip to content

Commit c46129e

Browse files
removed redundant pubs
1 parent dd700be commit c46129e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

web3swift/Convenience/Classes/BigUInt+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
import struct BigInt.BigUInt
1010

1111
public extension BigUInt {
12-
public init?(_ naturalUnits: String, _ ethereumUnits: Web3.Utils.Units) {
12+
init?(_ naturalUnits: String, _ ethereumUnits: Web3.Utils.Units) {
1313
guard let value = Web3.Utils.parseToBigUInt(naturalUnits, units: ethereumUnits) else {return nil}
1414
self = value
1515
}

web3swift/Convenience/Classes/Data+Extension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public extension Data {
1919
}
2020
}
2121

22-
public func constantTimeComparisonTo(_ other:Data?) -> Bool {
22+
func constantTimeComparisonTo(_ other:Data?) -> Bool {
2323
guard let rhs = other else {return false}
2424
guard self.count == rhs.count else {return false}
2525
var difference = UInt8(0x00)
@@ -29,7 +29,7 @@ public extension Data {
2929
return difference == UInt8(0x00)
3030
}
3131

32-
public static func zero(_ data: inout Data) {
32+
static func zero(_ data: inout Data) {
3333
let count = data.count
3434
data.withUnsafeMutableBytes { (dataPtr: UnsafeMutablePointer<UInt8>) in
3535
// var rawPtr = UnsafeMutableRawPointer(dataPtr)

web3swift/Convenience/Classes/RIPEMD160+StackOveflow.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,20 +372,20 @@ public struct RIPEMD160 {
372372

373373
public extension RIPEMD160 {
374374

375-
public static func hash(message: Data) -> Data {
375+
static func hash(message: Data) -> Data {
376376
var md = RIPEMD160()
377377
md.update(data: message)
378378
return md.finalize()
379379
}
380380

381-
public static func hash(message: String) -> Data {
381+
static func hash(message: String) -> Data {
382382
return RIPEMD160.hash(message: message.data(using: .utf8)!)
383383
}
384384
}
385385

386386
public extension RIPEMD160 {
387387

388-
public static func hmac(key: Data, message: Data) -> Data {
388+
static func hmac(key: Data, message: Data) -> Data {
389389

390390
var key = key
391391
key.count = 64 // Truncate to 64 bytes or fill-up with zeros.
@@ -404,11 +404,11 @@ public extension RIPEMD160 {
404404
return outerMd.finalize()
405405
}
406406

407-
public static func hmac(key: Data, message: String) -> Data {
407+
static func hmac(key: Data, message: String) -> Data {
408408
return RIPEMD160.hmac(key: key, message: message.data(using: .utf8)!)
409409
}
410410

411-
public static func hmac(key: String, message: String) -> Data {
411+
static func hmac(key: String, message: String) -> Data {
412412
return RIPEMD160.hmac(key: key.data(using: .utf8)!, message: message)
413413
}
414414
}

0 commit comments

Comments
 (0)