Lib; is a library for cryptography on the secp256k1 made available for the public.
Electrum we know is a python program. They are different methods of running an electrum like TAR.gz which the installation code for electrum is made available on github to be.
sudo apt-get install python3-setuptools python3-pip
python3 -m pip install --user .
This thread shows the implementation details of
Libsecp256K1 when running Electrum alternatively.
Below is a script provided to build Libsecp256k1
sudo apt-get install automake libtool
./contrib/make_libsecp256k1.sh
How to Build Libsecp256k1It's highly necessary to write your own code (optimized assembly) to improve the performance of your program. Using Gcc-03
Requirement = Autotool
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install # optional
Checking for Bugs$ ./exhaustive_tests
Memory debugging using Valgrind$ valgrind --max-stackframe=2500000 ./exhaustive_tests
CREATE A TEST COVERAGE USING GCC WITH
--enable-coverage
$ ./configure --enable-coverage
Execute the test$ make check
Open a report using gcovr$ gcovr --exclude 'src/bench*' --print-summary
Open a HTML report with colored and annotated source code$ mkdir -p coverage
$ gcovr --exclude 'src/bench*' --html --html-details -o coverage/coverage.html
These codes were shared on github. I decided to share on this forum to reduce the hassle of looking for them on github.
My source:
https://github.com/spesmilo/electrum .
The link above consists of the code required to run Electrum.
Would appreciate if you contribute to this thread, I seek knowledge on this aswell. cheers.