12 Commits

Author SHA1 Message Date
Isis Lovecruft
3a9435df94 Fixup serde and ed25519 trait errors in tests/benches. 2020-07-13 23:16:30 +00:00
Isis Lovecruft
28eed1cba0 Add PublicKey::verify_strict() and Keypair::verify_strict() methods. 2019-10-04 02:54:13 +00:00
Isis Lovecruft
dc4b77b551 Fix bad import and feature specification in benchmarks. 2019-10-03 23:15:50 +00:00
Isis Lovecruft
ae8764fbef Update copyright year to 2019 and destroy capitalism. 2019-01-18 04:59:12 +00:00
Isis Lovecruft
82cdcb9cc9 Fix benchmarks after merging #64. 2018-12-30 04:26:22 +00:00
Isis Lovecruft
80ae5d0683 Cleanup RNG usage after merging #57. 2018-12-22 12:20:59 +00:00
Isis Lovecruft
c700a2b5e4 This is what happens when you have separate machines for benchmarks and
committing code.
2018-07-27 19:17:03 +00:00
Isis Lovecruft
1b702a3fe1 Add more batch sizes to benchmarks. 2018-07-27 18:28:17 +00:00
Isis Lovecruft
468acd8f1f Fix batch benchmarks to use new function signature. 2018-07-27 18:28:06 +00:00
Isis Lovecruft
ce46a12d92 Implement batch verification.
The API for this isn't the greatest and I apologise for that.  Suggestions for
improvement welcome.  One thing which @hdevalence and I considered was to
change the function signature to:

    pub fn verify_batch<D, C, M, S, K>(messages: M,
                                       signatures: S,
                                       public_keys: K,
                                       csprng: &mut C) -> Result<(), SignatureError>
        where D: Digest<OutputSize = U64> + Default,
              C: Rng + CryptoRng,
              M: IntoIterator<Item = &[u8]>,
              S: IntoIterator,
              S::Item: Borrow<Signature>,
              K: IntoIterator,
              K::Item: Borrow<Signature>,

The other improvement which could be made is to implement 128-bit scalars for
the randomnesses.

 * CLOSES #27
2018-07-17 19:03:46 +00:00
Isis Lovecruft
bda9bba9d5 Remove ZeroRng from benchmarks. 2018-07-12 20:19:42 +00:00
Isis Lovecruft
164303eeac Switch to using criterion for benchmarks. 2018-07-11 22:46:32 +00:00