AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 64 Bitcoin

sign: verify schnorr sigs after creation

Public commit record

What the developer wrote

Authored by Jon Griffiths

95/100 · Strong
sign: verify schnorr sigs after creation

Unlike ECDSA, a corrupted schnorr sig may leak information about the
private key. Check the sig after creation to prevent this from ever
happening.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit adds a safety check when creating Schnorr digital signatures in libwally-core. After a signature is generated, the code now immediately verifies it using the corresponding public key. If the signature fails verification, it is erased and not returned to the caller. This prevents a rare but real risk: a corrupted or faulty Schnorr signature could leak information about the private key.

Recommended action

Treat this as a security-hardening fix and include it in the next release. Users generating Schnorr signatures should upgrade. No immediate incident response is indicated unless invalid Schnorr signatures have already been produced or exposed by affected versions.

Security signals we found

01

Schnorr signature verification immediately after signing

02

Output buffer cleared when signature generation or verification fails

03

Private-key leakage risk explicitly mentioned in commit message

04

Defensive fault-tolerance against corrupted signatures

Risk score

Why this scored 64/100

Our methodology →
Potential impact 22/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.