For theoretical details, please refer to Extraction Algorithm, most code of extraction example is borrowed from Secretflow spu, structure of PIR example is borrowed from fastPIR.
For details, please refer to Microsoft SEAL, the following will show how to compile and install SEAL in Ubuntu.
git clone https://github.com/microsoft/SEAL.git
cd SEAL
cmake -S . -B build
cmake --build build
sudo cmake --install build
If download breaks when running cmake -S . -B build, use the following command instead
cmake -S . -B build -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF -DSEAL_USE_ZSTD=OFF
If all the command runs successfully, SEAL is compiled and installed globally.
After git clone and moving to the downloaded folder, run the following command to compile
cmake -S . -B build
cmake --build build
Running test, please run
./build/manipulateSEAL