Commit Graph

1 Commits

Author SHA1 Message Date
Tony Arcieri 7fa56f960f ed25519: add (doctested!) ed25519-dalek usage example (#167)
Adds a rustdoc example which completely demonstrates how to use code
written generically with `ed25519::Signature` and `signature::{Signer,
Verifier}` with the concrete `ed25519_dalek::{Keypair, PublicKey}`
types.

Unlike the previous example, which hardly showed anything, this commit
also pulls in `ed25519-dalek` as a `[dev-dependency]`, which makes it
possible to actually doctest the example.
2020-09-11 15:20:39 -07:00