Function ed25519_dalek::hazmat::raw_sign
source · pub fn raw_sign<CtxDigest>(
esk: &ExpandedSecretKey,
message: &[u8],
verifying_key: &VerifyingKey,
) -> Signature
Expand description
Compute an ordinary Ed25519 signature over the given message. CtxDigest
is the digest used to
calculate the pseudorandomness needed for signing. According to the Ed25519 spec, CtxDigest = Sha512
.
§⚠️ Unsafe
Do NOT use this function unless you absolutely must. Using the wrong values in
ExpandedSecretKey
can leak your signing key. See
here for more details on this attack.