Closed milapsheth closed 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
Going offline, so feel free to merge if it looks good!
bincode
version and switched to using varint encoding. This avoids encoding length of each vector with 8 bytes (instead it uses as much as needed, which is usually one or two bytes). Note that thedeserialize
function uses a different default than theDefaultOptions
100
#171x.y
for all crate versions.