Ed25519 signature
Deterministic signature of a message with a 32-byte secret key, checked against RFC 8032.

Overview & Cryptographic Context
Ed25519 (specified in IETF RFC 8032 and NIST FIPS 186-5) is the Edwards-curve Digital Signature Algorithm (EdDSA) over the twisted Edwards curve -x2 + y2 = 1 - (121665/121666)x2y2 (mod 2255-19) paired with SHA-512. Unlike traditional ECDSA, which requires a fresh cryptographic random nonce k for every signature (and suffers catastrophic private-key recovery if a nonce is ever reused), Ed25519 derives the per-message nonce r = SHA-512(prefix ‖ M) mod ℓ deterministically from the secret key's upper SHA-512 half and the message itself.
This workflow reproduces RFC 8032 §7.1 (TEST 2), signing a 1-byte message (0x72) under a 32-byte secret key seed to produce the exact 64-byte signature R ‖ S.
Pipeline Architecture & Wiring Flow
- Seed & Message Ingress (
Workflow Input): Supplies the 32-byte Ed25519 secret seedPrivateKeyand the 1-byteMessage(0x72). - Deterministic Signing (
Ed25519 Sign): Expands the 32-byte seed with SHA-512 into the clamped secret scalar s and nonce prefix, derives public key A = [s]B, computes R = [r]B, and solves S = (r + SHA-512(R ‖ A ‖ M) · s) mod ℓ. - Signature Output (
Workflow Output): Emits the 64-byte signature (R || S).
Nodes & Configuration
| Node | Node Role & Key Parameters | Count |
|---|---|---|
| Workflow Input | Supplies PrivateKey (32 B) and Message (1 B) | 1 |
| Ed25519 Sign | Computes deterministic 64-byte RFC 8032 PureEdDSA signature | 1 |
| Workflow Output | Collects the 64-byte Signature | 1 |
Inputs, Outputs & Test Vector Verification
Verification Source: RFC 8032 §7.1 (TEST 2, message 0x72)
Inputs
| Name | Type | Value (Hex) |
|---|---|---|
PrivateKey | bytes (32 B) | 4ccd089b28ff96da9db6c346ec114e0f5b8a319f35aba624da8cf6ed4fb8a6fb |
Message | bytes (1 B) | 72 |
Expected Outputs
| Name | Type | Value (Hex) |
|---|---|---|
Signature | bytes (64 B) | 92a009a9f0d4cab8720e820b5f642540a2b27b5416503f8fb3762223ebdb69da085ac1e43e15996e458f3613d0f11d8c387b2eaeb4302aeeb00d291612bb0c00 |