Module tor_llcrypto::pk::ed25519
source · Expand description
Re-exporting Ed25519 implementations, and related utilities.
Here we re-export types from [ed25519_dalek
] that implement the
Ed25519 signature algorithm. (TODO: Eventually, this module
should probably be replaced with a wrapper that uses the ed25519
trait and the Signature trait.)
We additionally provide an Ed25519Identity
type to represent the
unvalidated Ed25519 “identity keys” that we use throughout the Tor
protocol to uniquely identify a relay.
Structs§
- An unchecked, unvalidated Ed25519 key.
- A variant of
Keypair
containing an [ExpandedSecretKey
]. - ed25519 signing key which can be used to produce signatures.
- An ed25519 public key.
- Ed25519 signature.
- An ed25519 signature, plus the document that it signs and its public key.
Constants§
- The length of an ED25519 identity, in bytes.
- The length of an ED25519 signature, in bytes.
Traits§
- An object that has an Ed25519
PublicKey
. - Sign the provided message bytestring using
Self
(e.g. a cryptographic key or connection to an HSM), returning a digital signature. - Verify the provided message bytestring using
Self
(e.g. a public key)
Functions§
- Perform a batch verification operation on the provided signatures