Skip to content

Commit

Permalink
docs(contracts): document compilation in pubkey_to_g1_wrapper.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mempirate committed Oct 21, 2024
1 parent f7dd940 commit b536d08
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bolt-contracts/script/pubkey_to_g1_wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/bin/bash

# Only works on Linux
# Notes on cross-compiling the binaries:
#
# Linux for arm64:
# - sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
# - GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 go build -o pubkey_to_g1-linux-arm64
#
# MacOS for amd64:
# - GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build -o pubkey_to_g1-darwin-amd64


arch=$(uname -i 2>/dev/null) || arch=$(uname -p)
if [[ $OSTYPE == linux* ]]; then
if [[ $arch == x86_64 ]]; then
Expand Down

0 comments on commit b536d08

Please sign in to comment.