File tree 3 files changed +26
-2
lines changed
3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ ARG CABAL_VERSION=3.8.1.0
3
3
ARG GHC_VERSION=8.10.7
4
4
ARG LIBSODIUM_REF=dbb48cce
5
5
ARG SECP256K1_REF=ac83be33
6
+ ARG BLST_REF=v0.3.10
6
7
7
8
WORKDIR /code
8
9
@@ -71,4 +72,16 @@ RUN git clone https://github.com/bitcoin-core/secp256k1 && \
71
72
make && \
72
73
make install
73
74
75
+ # BLST
76
+ COPY libblst.pc /usr/local/lib/pkgconfig/
77
+ RUN git clone https://github.com/supranational/blst && \
78
+ cd blst && \
79
+ git checkout ${BLST_REF} && \
80
+ ./build.sh && \
81
+ cp bindings/blst_aux.h bindings/blst.h bindings/blst.hpp /usr/local/include/ && \
82
+ cp libblst.a /usr/local/lib/ && \
83
+ chmod u=rw,go=r /usr/local/lib/pkgconfig/libblst.pc \
84
+ /usr/local/include/blst_aux.h /usr/local/include/blst.h /usr/local/include/blst.hpp \
85
+ /usr/local/lib/libblst.a
86
+
74
87
FROM builder as haskell
Original file line number Diff line number Diff line change 3
3
A container image with GHC and cabal for developing Haskell applications for
4
4
Cardano.
5
5
6
- This image is based on Debian Slim for ease of extension.
6
+ This image is based on Debian Bookworm ( Slim) for ease of extension.
7
7
8
- Includes libsodium and libsecp256k1 which are commonly used in Cardano.
8
+ Includes libsodium, libsecp256k1, and BLST which are also used in Cardano.
Original file line number Diff line number Diff line change
1
+ prefix=/usr/local
2
+ exec_prefix=${prefix}
3
+ libdir=${exec_prefix}/lib
4
+ includedir=${prefix}/include
5
+
6
+ Name: libblst
7
+ Description: Multilingual BLS12-381 signature library
8
+ URL: https://github.com/supranational/blst
9
+ Version: 0.3.10
10
+ Cflags: -I${includedir}
11
+ Libs: -L${libdir} -lblst
You can’t perform that action at this time.
0 commit comments