Skip to content

Commit 5208219

Browse files
committed
vast script
1 parent aefcf04 commit 5208219

4 files changed

Lines changed: 271 additions & 120 deletions

File tree

Cargo.lock

Lines changed: 105 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,2 @@
11
# ed25519-vanity-rs
22
Ed25519 vanity generator with CUDA in Rust
3-
4-
## How to use
5-
6-
```shell
7-
# from vastai/base-image:cuda-12.8.1-cudnn-devel-ubuntu24.04
8-
9-
# configure ssh key
10-
ssh-keygen -t rsa -b 3072 -f ~/.ssh/id_rsa -N ""
11-
12-
# add to github
13-
14-
# configure git
15-
git config --global user.name "Brandon Ros"
16-
git config --global user.email "$EMAIL"
17-
18-
# clone repo
19-
git clone git@github.com:brandonros/ed25519-vanity-rs.git
20-
cd ed25519-vanity-rs
21-
22-
# install system dependencies
23-
apt update && apt install -y pkg-config libssl-dev zlib1g-dev clang
24-
25-
# install llvm v7
26-
curl -sSf -L -O http://security.ubuntu.com/ubuntu/pool/universe/libf/libffi7/libffi7_3.3-5ubuntu1_amd64.deb && \
27-
curl -sSf -L -O http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-7/llvm-7_7.0.1-12_amd64.deb && \
28-
curl -sSf -L -O http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-7/llvm-7-dev_7.0.1-12_amd64.deb && \
29-
curl -sSf -L -O http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-7/libllvm7_7.0.1-12_amd64.deb && \
30-
curl -sSf -L -O http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-7/llvm-7-runtime_7.0.1-12_amd64.deb && \
31-
apt-get install -y ./*.deb && \
32-
ln -s /usr/bin/llvm-config-7 /usr/bin/llvm-config && \
33-
rm ./*.deb
34-
35-
# install rust
36-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
37-
. "$HOME/.cargo/env"
38-
39-
# build
40-
export LLVM_CONFIG="llvm-config-7"
41-
export LLVM_LINK_STATIC="1"
42-
export RUST_LOG="info"
43-
export LD_LIBRARY_PATH="/usr/local/cuda/nvvm/lib64/"
44-
cargo build --release
45-
46-
# run
47-
cargo run --release -- aa 8192 256
48-
```

0 commit comments

Comments
 (0)