IotaChecksum
public struct IotaChecksum
IOTA Checksum utils.
-
Calculates the checksum for an address.
Declaration
Swift
public static func calculateChecksum(address: String) -> StringParameters
addressThe address.
Return Value
The checksum.
-
Removes the checksum from an address.
Declaration
Swift
public static func removeChecksum(address: String) -> String?Parameters
addressA valid address with checksum.
Return Value
The address without the checksum if is a valid address,
nilotherwise. -
Removes the checksum from an address. NB: The address will be not verified.
Declaration
Swift
public static func removeChecksumFromAddress(_ address: String) -> StringParameters
addressA valid address.
Return Value
The address without the checksum.
-
Checks if an address contains a valid checksum.
Declaration
Swift
public static func isValidChecksum(address: String) -> BoolParameters
addressThe address.
Return Value
trueif is a valid checksum,falseotherwise. -
Checks if is an address with checksum.
Declaration
Swift
public static func isAddressWithChecksum(address: String) -> BoolParameters
addressThe address.
Return Value
trueif is an address with checksum,falseotherwise. -
Checks if is an address without checksum.
Declaration
Swift
public static func isAddressWithoutChecksum(address: String) -> BoolParameters
addressThe address.
Return Value
trueif is an address without checksum,falseotherwise.
IotaChecksum Structure Reference