# WorkHeart USB Node for Mac

## 1.Minimum system requirements

* **OS**: macOS version 14.5 and above
* **Storage**: 10GB available storage
* **Memory**: 4GB RAM
* **Processor**: A processor with 6 cores, arm architecture.

## 2. Install node running program

1. Use the browser to download the compute node running program.&#x20;

Note:  Please note the difference between Intel series mac and M series mac, please download the corresponding file

```bash
# Download arm cpu using the following address：
https://storage.googleapis.com/bkt-privasea-face-pre-public/calc-node/beta/armMac/mac.zip

# Download intel cpu using the following address：
https://storage.googleapis.com/bkt-privasea-face-pre-public/calc-node/beta/intelMac/mac.zip
```

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2FfmsWJVmBnPXSx1089384%2F19fad1ab48534bbf2d4d79cd41a17f5.jpg?alt=media&#x26;token=80e9bd8b-9a80-4979-ab09-84ca7e57466b" alt=""><figcaption></figcaption></figure>

After the download is complete, the file will be stored in the Downloads directory, and the calc script in the mac folder will be the executable program of the calculation node.

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2FR1MOHXbXzAlBNbMo05Xb%2Fddd3f6b653863df1899e034ed9fc42d.png?alt=media&#x26;token=3152b5d9-e101-41d8-8b4c-ba5a407005d0" alt=""><figcaption></figcaption></figure>

2. The first time you run the calc script, you need to authorize calc in "System Settings" -> "Privacy and Security" of macOS. Please feel free to use it. If you don't know how to set it up, you can also copy the error content to chatgpt to find a solution.

**Example**: you may be prompted: "calc" cannot be opened because Apple cannot check whether it contains malware. Please feel free to use it. You need to perform the following operations:

&#x20;Find the calc file, hold down "control" and cli c  k on it. Select "open" in the pop-up window, then close the opened window.

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2F3jGll7lgM8M1ZRv0IHrV%2F8009181421f660b1a00f87805758ecb.jpg?alt=media&#x26;token=3210c0d4-bec1-4b61-9e79-70221b3d711e" alt=""><figcaption></figcaption></figure>

3. Open the Terminal app on Mac. You can find it in the following ways.

&#x20; 3.1  Open applications. There is an APP called Terminal on the Mac desktop. Click to open it.

<div align="left"><figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2FwQv5LgaUIKiTrfScjhCr%2F3c1f4fcbfa69be3d8a46c1a7d206c6b.png?alt=media&#x26;token=80a604da-a06c-4210-8b24-29460bd48a32" alt=""><figcaption></figcaption></figure></div>

3.2  Search for Terminal. Open the focus by holding down the shortcut key ⌘ Space (space bar), or click the 🔍 symbol in the upper right corner, open the focus and enter the first three characters of Ter.

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2FtfWJThJCB2K0RNUBEpwy%2F8878a09f0717e74e1263b885fa4688a.png?alt=media&#x26;token=945b0020-9074-4b23-8465-ba20b2ce9df4" alt=""><figcaption></figcaption></figure>

4. Enter the command through the terminal, enter the downloaded directory armMac, and give calc executable program permissions.

```bash
# Enter the program directory
cd  Downloads/mac   
#Give calc executable permissions
chmod +x ./calc
```

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2F5ADQAScK152wrUt06Ivj%2Ff9f70e5a50acd54764a1edf6b0064f9.png?alt=media&#x26;token=7a930cd3-54aa-44ae-a1fb-9c830609c21d" alt=""><figcaption></figcaption></figure>

## 3.Node program configuration

1. Get keystore file

You can directly use the existing wallet keystore. If there is no keystore file, you can execute the following command to generate it:

**Note**: The program will prompt you to enter a password, <mark style="color:purple;">please remember this password for future use.</mark> The generated keystore file will have a corresponding **node address**, Please keep it properly to avoid losing it, it will be used in the dashboard configuration

```bash
# Run the calculation node
./calc  new_keystore  
```

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2FmSBc2aVgJZGgA2MarOVl%2F94c7c775a8b0f1d49aa7eeac1198474.png?alt=media&#x26;token=20b9113e-c2fe-44ee-be42-b4fd16ff126a" alt=""><figcaption></figcaption></figure>

```bash
Enter password for a new key:   # Enter wallet password
Enter password again to verify:   # Enter password again for confirmation

# After the wallet is successfully generated, you will see the following information:
# node address: 0x6cbd93459aa460c0293D874d0FAF07Ebd97F84CE 
#  This is the node address you generated, used for binding in the dashboard
# node filename: kevstore:///Users/mac/Downloads/armMac/config/UTC--2024-12-25T06-26-21,751163000Z--6cbd93459aa460c0293d874d0faf07ebd97f84ce
#  UTC--2024-12-25T06-26-21,751163000Z--6cbd93459aa460c0293d874d0faf07ebd97f84ce  is the keystore file for the node; this file name is just an example and may differ from your file name.
```

Instructions: 0x6cbd93459aa460c0293D874d0FAF07Ebd97F84CE  is an example and may differ in your case.

2. Rename the keystore file in  to wallet\_keystore:

<div align="left"><figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2FWKCHlA2mhv0sMziLgR2J%2F267135cc7cdaed6fe20553b54804de1.png?alt=media&#x26;token=6fd33939-16a9-47d1-95ab-41b5c5177d4a" alt=""><figcaption></figcaption></figure></div>



<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2F6baAuqE8vOzwN9KMXWBM%2Fefce9449fe2f0e603145222794427da.jpg?alt=media&#x26;token=aced59a5-eacb-4eda-a174-f225d481f19c" alt=""><figcaption></figcaption></figure>

## 4. Link node address and revenue address

1\. Use the wallet address corresponding to the keystore file to link it with the income address on [dashboard](https://deepsea-beta.privasea.ai/usbNode).

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2FLZOdc6BQNHnDl2q1dqzg%2F5468b4c13d631b4bf7fc301e623d420.png?alt=media&#x26;token=86b2b456-faea-4ad9-81bc-634677d163d1" alt=""><figcaption></figcaption></figure>



2. Click set up my node, you will see two pop-up windows of the wallet, you need to click to confirm, and your configuration is complete

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2FxBm2TEObVr5ija00YXhC%2Fdda6793745e238b5523bcce4acc120c.png?alt=media&#x26;token=4f14b154-b33d-4156-8be2-91afc9b742e9" alt=""><figcaption></figcaption></figure>

## 5. Start the node

1. Make sure the usb is inserted correctly. Then start the computing node command as follows:

<pre class="language-shell"><code class="lang-shell"><strong># Start the compute node:
</strong>./calc mac_calc
</code></pre>

The command runs normally, and you need to enter the password of the keystore file in the running interface.Successful startup as shown in the figure below. If failed, please check:

{% content-ref url="how-to-start-the-node-faq" %}
[how-to-start-the-node-faq](how-to-start-the-node-faq)
{% endcontent-ref %}

<figure><img src="https://3479848219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GSryxoPXpRdDGxtzpAS%2Fuploads%2Fk76WJth6pJRR6cnoKTaA%2F7a939d3e41819003fa0e05dc0a6d9e0.jpg?alt=media&#x26;token=71650313-f04d-414f-87b1-07250da182ab" alt=""><figcaption></figcaption></figure>

## 6. Stop the node

```bash
control + C
```
