IotaInputValidator
public struct IotaInputValidator
Input validator for IOTA client.
-
Checks for a valid address.
Declaration
Swift
public static func isAddress(address: String) -> BoolParameters
addressThe address.
Return Value
trueif is a valid address,falseotherwise. -
Checks for a valid seed.
Declaration
Swift
public static func isSeed(seed string: String) -> BoolParameters
stringA seed.
Return Value
trueif is a valid seed,falseotherwise. -
Checks for a valid trytes string.
Declaration
Swift
public static func isTrytes(trytes: String) -> BoolParameters
trytesTrytes.
Return Value
trueif is a valid input,falseotherwise. -
Checks for a valid hash.
Declaration
Swift
public static func isHash(hash: String) -> BoolParameters
hashAn hash string.
Return Value
trueif is a valid hash,falseotherwise. -
Checks if is an empty trytes
Declaration
Swift
public static func isNinesTrytes(trytes: String) -> BoolParameters
trytesTrytes.
Return Value
trueif is a valid string,falseotherwise.
IotaInputValidator Structure Reference