axelarnetwork / tofn

A threshold cryptography library in Rust
Apache License 2.0
112 stars 23 forks source link

fix: update max lengths and check r2 bcast commit length #174

Closed milapsheth closed 3 years ago

milapsheth commented 3 years ago
milapsheth commented 3 years ago

@ggutoski Run cargo update locally to update the paillier-rs dependency. When running the integration test, I get the following message sizes:

integration::single_thread: total_share_count 10, threshold 5
 integration::single_thread: keygen...
 integration::single_thread::execute: round 1 bcast byte length 4267
 integration::single_thread::execute: round 2 bcast byte length 243
 integration::single_thread::execute: round 2 p2p byte length 526
 integration::single_thread::execute: round 3 bcast byte length 72
 integration::single_thread: sign...
 integration::single_thread::execute: round 1 bcast byte length 557
 integration::single_thread::execute: round 1 p2p byte length 1755
 integration::single_thread::execute: round 2 p2p byte length 6828
 integration::single_thread::execute: round 3 bcast byte length 173
 integration::single_thread::execute: round 4 bcast byte length 73
 integration::single_thread::execute: round 5 bcast byte length 40
 integration::single_thread::execute: round 5 p2p byte length 1789
 integration::single_thread::execute: round 6 bcast byte length 175
 integration::single_thread::execute: round 7 bcast byte length 40
test single_thread::basic_correctness ... ok
milapsheth commented 3 years ago

Going offline, so feel free to merge if it looks good!