Skip to content

Instantly share code, notes, and snippets.

@pcaversaccio
Last active November 18, 2023 16:52
Show Gist options
  • Save pcaversaccio/0c8f7be44dd90dc79dd04dadeb2a8f70 to your computer and use it in GitHub Desktop.
Save pcaversaccio/0c8f7be44dd90dc79dd04dadeb2a8f70 to your computer and use it in GitHub Desktop.
Set up the vast.ai instance with profanity2 (https://github.com/1inch/profanity2).

Setup

Update Linux

sudo apt update && sudo apt upgrade

Install build-essential Packages

We need the GNU C++ compiler g++ and the direct compilation utility make later.

sudo apt install build-essential

Install CUDA Toolkit

Profanity uses OpenCL which is natively supported via the NVIDIA OpenCL extensions.

sudo apt install nvidia-cuda-toolkit

Clone and Build Profanity2

git clone https://github.com/1inch/profanity2.git
cd profanity2
make

Generate Vanity Address

# Example
./profanity2.x64 --contract --leading 0 -z HEX_PUBLIC_KEY_128_CHARS_LONG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment