2022-11-23 16:32:25 +00:00
|
|
|
# Build Shared Library
|
|
|
|
|
2022-11-23 18:37:46 +00:00
|
|
|
## Prerequisites
|
|
|
|
|
2022-11-28 18:38:24 +00:00
|
|
|
* Follow the instructions in the [README.md](../../README.md) to build blst and the C-KZG library.
|
2022-11-25 13:28:03 +00:00
|
|
|
* `JAVA_HOME` environment variable is set to a JDK with an `include` folder containing a `jni.h` file.
|
2022-11-23 18:37:46 +00:00
|
|
|
|
2022-11-24 17:16:15 +00:00
|
|
|
## Build
|
2022-11-23 16:32:25 +00:00
|
|
|
```bash
|
2022-11-24 19:46:47 +00:00
|
|
|
make build
|
2022-11-23 16:32:25 +00:00
|
|
|
```
|
|
|
|
|
2022-11-25 15:53:22 +00:00
|
|
|
This will install the library in the `src/main/resources/ethereum/ckzg4844/lib` folder with a name according to your OS
|
2022-11-23 16:32:25 +00:00
|
|
|
|
2022-11-24 17:16:15 +00:00
|
|
|
## Test
|
2022-11-23 16:32:25 +00:00
|
|
|
```bash
|
2022-11-24 17:16:15 +00:00
|
|
|
make test
|
2022-11-23 16:32:25 +00:00
|
|
|
```
|