Module 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§

Ed25519Identity
An unchecked, unvalidated Ed25519 key.
ExpandedKeypair
A variant of Keypair containing an [ExpandedSecretKey].
Keypair
An Ed25519 keypair.
PublicKey
An Ed25519 public key.
Signature
An Ed25519 signature.
ValidatableEd25519Signature
An ed25519 signature, plus the document that it signs and its public key.

Constants§

ED25519_ID_LEN
The length of an ED25519 identity, in bytes.
ED25519_SIGNATURE_LEN
The length of an ED25519 signature, in bytes.

Traits§

Ed25519PublicKey
An object that has an Ed25519 PublicKey.
Ed25519SigningKey
An object that can generate Ed25519 signatures.

Functions§

validate_batch
Perform a batch verification operation on the provided signatures