summaryrefslogtreecommitdiff
path: root/src/merkle.rs
AgeCommit message (Collapse)Author
2019-08-11Address clippy lintsStuart Stock
* More consistent use of `dyn` * Add default implementations * Misc clippy changes
2019-01-19Update copyright for 2019Stuart Stock
2019-01-19Rust 2018 edition migrationStuart Stock
2018-10-21Changes to keep Clippy happyStuart Stock
2018-09-29Major refeactoring for better code structureStuart Stock
* Extract distinct types for online and long-term keys * Extract and create separate configuration trait and implementation(s) * Clean-ups, renames, tidying
2018-03-24Additional documentationStuart Stock
2018-03-17Apply default rustfmt style to the project.Stuart Stock
2018-03-12Fix merkle testsAaron Hill
2018-03-12Remove unecessary flat_mapAaron Hill
This gives another ~50,000 reqs/second on my machine
2018-03-11Add support for batch-signing requestsAaron Hill
As documented in the Roughtime spec, servers can batch together requests, only signing the root of a computed Merkle tree, in order to increase efficiency. Following the example of the reference Roughtime implementation, the default batch size is set to 64. However, this value can be changed in the config. Two pieces of benchmark infrastructure are added - a simple "benchmark mode" on the server, and a "stress test mode" on the client. These features can be used to help pick an optimal batch size for the server. In "benchmark mode", the server does not log any requests. Instead, it prints out the current request processing speed every second. This helps to keep the output manageable when using the client's "stress test" mode. In "stress test mode", the client sends the same message to the server in a loop. To prevent accidental flooding of the users's local network, or a remote server, only loopback addresses are supported in this mode.