Make API improvements to tor-cert
In tor-cert
:
- The check_key function should probably take
Option<&Key>
, not&Option<Key>
. - Most places that store an
Ed25519::PublicKey
should instead perhaps store anEd25519Identity
. (The latter is much smaller and does not take resources to process. The only downside is that it needs to be (fallably) converted to Ed25519::PublicKey before it can be used.)
Found while working on #511 (closed) .