Skip to content

Safeheron/mpc-snap-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPC-SNAP-WASM

Build

  • Clone this repository and update submodule:
git submodule update --init --recursive
  • Install Docker

Build docker image

This docker image is used to build all source codes.

cd scripts/build-docker-image
bash build.sh

Build deps & WASM

To build the final WASM file, its dependencies must be built in order: OpenSSL, Protobuf, Crypto-Suites and Multi-Party-Sig. Finally, build the WASM file.

Run the following command in this repository root folder.

  • Build OpenSSL
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) wasm-build:1.0.0 bash -c 'cd /src/scripts/build-openssl && ./build.sh'
  • Build Protobuf
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) wasm-build:1.0.0 bash -c 'cd /src/scripts/build-protobuf && ./build.sh'
  • Build Crypto-Suites
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) wasm-build:1.0.0 bash -c 'cd /src/scripts/build-crypto-suites && ./build.sh'
  • Build Multi-Party-Sig
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) wasm-build:1.0.0 bash -c 'cd /src/scripts/build-multi-party-sig && ./build.sh'
  • Build MPC SNAP WASM
docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) wasm-build:1.0.0 /src/build.sh

The WASM file will be output to the build folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published