Skip to content

Commit

Permalink
doc: add go (non-cgo), tinygo, and wasm instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Jan 18, 2024
1 parent daef7ac commit e5dfafb
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
# Build & Test
# Tenderbls

This copies the BLS parts from Tenderdash to be able to run standalone, and compare against Pure Go implementations of Chia / Relic BLS.

- Go (Kilic)
- TinyGo
- WASM
- CGO (Relic)

# Build & Test Go / TinyGo

```sh
curl https://webi.sh/go | sh
source ~/.config/envman/PATH.env

go build ./cmd/chiabls
```

```sh
curl https://webi.sh/tinygo | sh
source ~/.config/envman/PATH.env

tinygo build --tags generic ./cmd/chiabls
```

## WASM

```sh
curl https://webi.sh/rust | sh
curl https://webi.sh/tinygo | sh
source ~/.config/envman/PATH.env

cargo install wasm-opt

tinygo build --tags generic \
-o chiabls.wasm -target=wasi \
./cmd/chiabls
```

```sh
GOOS=wasip1 GOARCH=wasm go build -o chiabls.wasm ./cmd/chiabls
```

# Build & Test CGO

```sh
git submodule init
Expand Down

0 comments on commit e5dfafb

Please sign in to comment.