Running on Mac OS

Prerequisites

Please make sure to follow the prerequisites, which include setting up a wallet, securing testnet funds, and claiming your Node license.

Run the node on Mac

Step 1 - Visit https://github.com/carv-protocol/verifier/releases/tag/v0.1.1 and download the appropriate executable software.

Step 2 - Download corresponding configuration files.

  1. Download identity.json file.

  2. Download tcb.json file.

  3. Download config_local.json file.

  4. Download trusted.json file.

Step 3 - Move verifier executable file and all configurations into a designated directory.

Step 4 - Open command line

Press Command + Space, then you can enter Terminal in the pop-up Spotlight search bar and press Enter to open the terminal

Step 5 - Switch the path to the directory created above

Please use the command cd <Your Path> to change your current working directory to the designated CARV node directory. For instance, if the path specified in the tutorial is ~/Documents/CARV Node, you would type cd "~/Documents/CARV Node" to switch to that directory.

Step 6 - fetch the private key

Verifier nodes need transactions to be submitted to the testnet. For testing purposes, you can utilize a plain private key. The software offers both environment variables and a key store for managing private keys. To use the alternative methods, you will need to execute the source code.

For this tutorial, please ensure that you create a test wallet containing only testnet funds. Never use any addresses that hold real funds!

This tutorial uses MetaMask as an example. More details can be found here.

  1. Click on the account selector at the top of your screen.

  2. Click the three vertical dots next to the account you want to export.

  3. On the 'Account details' page, click 'show private key'.

  4. Enter your wallet password and click 'Confirm'.

  5. Click and hold on 'Hold to reveal Private Key' to display your private key.

  6. Click to copy the private key to your clipboard.

  7. Click 'Done' to close the screen.

Step 7 - Run the verifier with private keys created in pre-requirement session

Application authorization

Please ensure you grant execution permissions to the executable file.

sudo chmod 777 verifier_macos_amd64

Application execute To initiate the verifier, execute the command ./verifier_macos_amd64 -conf config_local.yaml -private-key <replace with your private key>. If an alarm message appears, simply click the "Open" button to proceed.

If you are seeing below logs then it means your verifier is successfully running and scanning the on-chain attestation.

{"caller":"worker/chain.go:317", "level":"INFO", "msg":"chain [opBNB] query: start block 28511433, end block 28511533", "service.id":"GamingLaptop", "service.name":"", "service.version":"39d3515", "span.id":"", "trace.id":"", "ts":"2024-05-10T19:12:10-07:00"}then it means you have successfully caught an attestation

If you are seeing below logs then it means you have successfully caught an attestation

If you are seeing below logs then it means your verifier node has successfully broadcasted a verification

Now you should be able to see your verification show up on the https://testnet-explorer.carv.io/

Common Issues

Cannot be opened because the developer cannot be verified

This issue stems macOS cannot verify that this app. To resolve this, please follow this guidance:

  1. Swipe down and find the security option. You will see the currently blocked content, just click Allow Anyway

Last updated