This will be a workspace for cross-compiling lnd
, the Lightning Labs lightning node implementation to WebAssembly, and ultimately to be run in a web browser.
This repository was initialized by setting GOPATH
to this directory and running go get -v -d github.com/lightningnetwork/lnd
The hide_git
script then renames all the recursive .git
files in subdirectories to .git2
so they won't be treated as submodules.
Then arbitrary changes can be made to arbitrary dependencies with impunity.
Rebasing and upgrading is left as an exercise to the reader. I have no idea how to do it.
This doesn't actually work, but there are certain aspects of it which are promising.
First, check out this repository.
Go to bridge
and run yarn
Go to jsdeps
and run yarn && yarn build
Make sure you have globally installed http-server
with yarn global add http-server
Now, back in the root directory, run:
http-server public/
Leave that running in the background.
env GOOS=js GOARCH=wasm go build -o public/wire.wasm leyden.app/wire
env GOOS=js GOARCH=wasm go build -o public/biggo.wasm leyden.app/biggo
env GOOS=js GOARCH=wasm go test -v -exec=(go env GOROOT)"/misc/wasm/go_js_wasm_exec" github.com/coreos/bbolt