diff --git a/docs/getting-started/install.md b/docs/getting-started/install.md index 2ec5c99..cdf46f3 100644 --- a/docs/getting-started/install.md +++ b/docs/getting-started/install.md @@ -178,6 +178,34 @@ make check sudo make install ``` +#### Installing BLST + +Download and install BLST so that cardano-base can pick it up (assuming that pkg-config is installed): + +```bash +git clone https://github.com/supranational/blst +cd blst +git checkout v0.3.10 +./build.sh +cat > libblst.pc << EOF +prefix=/usr/local +exec_prefix=\${prefix} +libdir=\${exec_prefix}/lib +includedir=\${prefix}/include + +Name: libblst +Description: Multilingual BLS12-381 signature library +URL: https://github.com/supranational/blst +Version: 0.3.10 +Cflags: -I\${includedir} +Libs: -L\${libdir} -lblst +EOF +sudo cp libblst.pc /usr/local/lib/pkgconfig/ +sudo cp bindings/blst_aux.h bindings/blst.h bindings/blst.hpp /usr/local/include/ +sudo cp libblst.a /usr/local/lib +sudo chmod u=rw,go=r /usr/local/{lib/{libblst.a,pkgconfig/libblst.pc},include/{blst.{h,hpp},blst_aux.h}} +``` + #### Downloading the source code for cardano-node Create a working directory for your builds: