Skip to content

Commit c7327bf

Browse files
committed
Some changes to the core lib:
* Removed C-API. We are expecting a lot of changes to the library, and not expecting to use it out of rust. A C-API may be useful in the future, but not now. * Created a `dense_mapping` module to simplify the STM module (by far the most complex and crucial module of the library). * Clerks no longer verify Multi Signatures. Instead, we have multi signatures capable of being verified provided a verification key.
1 parent fb9249b commit c7327bf

File tree

12 files changed

+181
-1474
lines changed

12 files changed

+181
-1474
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,22 +137,6 @@ jobs:
137137
run: |
138138
set -o pipefail && cargo test --release -- -Z unstable-options --format json --report-time | tee >(cargo2junit > test-results-mithril-core.xml)
139139
140-
- name: Set up Clang
141-
uses: egor-tensin/setup-clang@v1
142-
with:
143-
version: latest
144-
platform: x64
145-
146-
- name: Install gtest manually
147-
run: sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake CMakeLists.txt && sudo make && sudo cp lib/*.a /usr/lib && sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a && sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
148-
149-
- name: Build C test
150-
run: clang -x c++ tests.c stms.c -g -o tests -L ../target/release -lmithril -lpthread -lstdc++ -lgtest -lgtest_main
151-
working-directory: mithril-core/c-tests
152-
153-
- name: Run C test
154-
run: LD_LIBRARY_PATH=../target/release ./tests --gtest_output=xml:test-results-ctest-mithril-core.xml
155-
working-directory: mithril-core/c-tests
156140
157141
- name: Upload Unit Test Results
158142
if: always()

mithril-core/benches/stm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ where
178178
let clerk = StmClerk::from_signer(&party_dummy);
179179
let msig = clerk.aggregate(&sigs, &msg).unwrap();
180180
group.bench_function("Verification", |b| {
181-
b.iter(|| clerk.verify_msig(&msig, &msg).is_ok())
181+
b.iter(|| msig.verify(&msg, &clerk.compute_avk(), &params).is_ok())
182182
});
183183
}
184184

mithril-core/build.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

mithril-core/c-tests/README.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)