Make a unified OnionKey type and/or an NtorOnionKey wrapper?
Right now the only supported type of onion key in arti is ntor
, which uses a curve25519 key. But in several places we use curve25519::PublicKey directly, which isn't best practice. In the onion service protocol, we allow onion keys to have multiple types, but only ntor is supported right now.
We should untangle all of this. tor-linkspec
might be a logical place.