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) -> StringParameters
trytesTrytes as String
minWeightMagnitudeMinimum Weight Magnitude
Return Value
Trytes as String
-
Perform the PoW asynchronously.
Declaration
Swift
func performPoW(trytes: String, minWeightMagnitude: Int, result: @escaping (String)->())Parameters
trytesTrytes as String
minWeightMagnitudeMinimum Weight Magnitude
resultTrytes as String
IotaLocalPoW Protocol Reference