IotaLocalPoW
public protocol IotaLocalPoW
Protocol for Iota Local Proof of Work, all the implementations for PoW can implement this protocol in order to be used in Iota client.
-
Perform the PoW synchronously.
Declaration
Swift
func performPoW(trytes: String, minWeightMagnitude: Int) -> String
Parameters
trytes
Trytes as String
minWeightMagnitude
Minimum Weight Magnitude
Return Value
Trytes as String
-
Perform the PoW asynchronously.
Declaration
Swift
func performPoW(trytes: String, minWeightMagnitude: Int, result: @escaping (String)->())
Parameters
trytes
Trytes as String
minWeightMagnitude
Minimum Weight Magnitude
result
Trytes as String