/// <summary> /// Adds the checksum to the specified address /// </summary> /// <param name="address">An address without checksum</param> /// <returns>The address with the appended checksum </returns> /// <exception cref="InvalidAddressException">is thrown when an invalid address is provided</exception> public static string AddChecksum(string address) { InputValidator.CheckAddress(address); string addressWithChecksum = address; addressWithChecksum += CalculateChecksum(address); return(addressWithChecksum); }
private static bool IsAddressWithoutChecksum(string address) { return(InputValidator.CheckAddress(address) && address.Length == Constants.AddressLengthWithoutChecksum); }