Running on Windows

Prerequisites

Please ensure you follow the Prerequisites to set up a wallet, prepare for the testnet gas fees, and claim your Node license.

Run the node on Windows

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 Win+R to open the Windows Run dialog box.

Then enter cmd to launch the console.

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 C:\CARV Node, you would type cd "C:\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

Execute the command verifier.exe -conf config_local.yaml -private-key <replace with your private key> to initiate the verifier.

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"}

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

Error: Insufficient funds for transfer

The issue stems from insufficient testnet funds in the operator's address. To resolve this, please follow this guidance to add testnet tokens to the address.

Last updated