Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/old-feet-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cypherock/cysync-desktop': patch
---

Add a guide for verifying app downloads to the README.
41 changes: 36 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,42 @@
## Table of contents

1. [Prerequisites](#prerequisites)
2. [Understanding the directory structure](#understanding-the-directory-structure)
3. [Development Setup](#development-setup)
4. [Local setup](#local-setup)
5. [Other commands](#other-commands)
6. [Contributing](#contributing)
2. [Verifying Your CySync Download](#verifying-your-cysync-download)
3. [Understanding the directory structure](#understanding-the-directory-structure)
4. [Development Setup](#development-setup)
5. [Local setup](#local-setup)
6. [Other commands](#other-commands)
7. [Contributing](#contributing)

## Verifying Your CySync Download

To ensure the CySync application you downloaded is legitimate and has not been corrupted, you should verify its checksum. This process confirms the file's integrity.

Each release on the [official releases page](https://github.com/Cypherock/cypherock-cysync/releases) includes a `sha256sum.txt` file containing the correct checksums for the application files.

**Steps to Verify:**

1. Download the CySync application for your system (e.g., `CySync-2.2.0.AppImage`) and the corresponding `sha256sum.txt` file from the same release.

2. Open a terminal or command prompt and navigate to the folder where you downloaded the files.

3. Run the appropriate command for your operating system:

- **On Linux and macOS:**

```bash
sha256sum CySync-2.2.0.AppImage
```

- **On Windows (using PowerShell):**
```powershell
Get-FileHash -Algorithm SHA256 .\CySync-2.2.0.exe
```
_(Replace the filename with the one you downloaded)_

4. Compare the long string of characters (the hash) generated by the command with the hash listed inside the `sha256sum.txt` file.

**If they match exactly, your download is authentic and safe to use!** If they don't match, do not run the application and try downloading it again.

## Prerequisites

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { BigNumber } from '@cypherock/cysync-utils';
import { AccountTypeMap } from '@cypherock/db-interfaces';
import React, { useEffect, useState } from 'react';

import { useCurrency } from '~/context';
import { selectLanguage, useAppSelector } from '~/store';

import { AddressInput } from './AddressInput';
Expand All @@ -28,7 +29,6 @@ import { NotesInput } from './NotesInput';
import { StellarMemoInput } from './StellarMemoInput';

import { useSendDialog } from '../../../context';
import { useCurrency } from '~/context';

const MAX_UINT64 = new BigNumber('0xffffffffffffffff');

Expand Down
2 changes: 1 addition & 1 deletion packages/cysync-core/src/dialogs/SwapDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import {
} from '@cypherock/cysync-ui';
import { SwapStatus } from '@cypherock/db-interfaces';
import React, { FC, useMemo } from 'react';
import { useSwap } from '~/context';

import { useSwap } from '~/context';
import { SwapTransactionRowData, useSwapTransactions } from '~/hooks';
import {
closeDialog,
Expand Down
3 changes: 2 additions & 1 deletion packages/cysync-core/src/services/swapService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import axios from 'axios';
import { SupportedProviders } from '@cypherock/db-interfaces';
import axios from 'axios';

import { config } from '../config';

const SUPPORTED_PROVIDERS = Object.values(SupportedProviders) as string[];
Expand Down