Registry / crypto / signature

signature

JSON →
library3.0.0rscratesunverified

Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519).

# Cargo.toml [dependencies] signature = "3.0.0"
INSTALL
IMPORT
SIG · SIGNATURE
S
signature
cryptorustv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Signer
use signature::Signer;

Sign a message using a signing key.

use signature::Signer; use ed25519_dalek::SigningKey; let key = SigningKey::generate(&mut rand::rngs::OsRng); let message = b"hello world"; let signature = key.sign(message); println!("Signature: {:?}", signature);
Debug
Known issues
gotchaRequires a concrete implementation like ed25519-dalek.
fix
Add a crate like ed25519-dalek or ecdsa to your dependencies.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
signature — cargo add signature · libregistry