Available on crate feature
hazmat
only.Expand description
Low-level interfaces to ed25519 functions
§⚠️ Warning: Hazmat
These primitives are easy-to-misuse low-level interfaces.
If you are an end user / non-expert in cryptography, do not use any of these functions. Failure to use them correctly can lead to catastrophic failures including full private key recovery.
Structs§
- Expanded
Secret Key - Contains the secret scalar and domain separator used for generating signatures.
Functions§
- raw_
sign - 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
. - raw_
sign_ byupdate - Compute an ordinary Ed25519 signature, with the message contents provided incrementally by updating a digest instance.
- raw_
verify - The ordinary non-batched Ed25519 verification check, rejecting non-canonical R
values.
CtxDigest
is the digest used to calculate the pseudorandomness needed for signing. According to the Ed25519 spec,CtxDigest = Sha512
.