Skip to content

Audit signWithScalar against RFC 8032 ed25519 #54

Description

@truthixify

Tier: L (1-2 weeks) Type: audit

Context

sdk/src/chains/stellar/scalar.ts::signWithScalar is a custom ed25519 signing routine that operates on a derived scalar (not the standard seed-based input). It needs an isolated security review against RFC 8032.

Scope

  • Reconstruct what RFC 8032 would do with the same scalar
  • Verify nonce derivation is deterministic, scalar-dependent, and bias-free
  • Cross-validate signatures against @noble/curves, @stellar/stellar-sdk, WebCrypto, Python cryptography.hazmat
  • Adversarial tests: scalar = 0, scalar = L-1, empty message, 1MB message

Acceptance criteria

  • Audit report at sdk/audits/2026-XX-author-signwithscalar.md
  • Test vectors at test/chains/stellar/signwithscalar-vectors.test.ts
  • Justification for why signWithScalar is necessary (vs reconstructing a seed)
  • No High/Critical findings published without coordination with security@usewraith.xyz

Files to start with

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programauditProduces a written report as primary deliverablecryptoCryptographic codedripsFunded via Drips Networkhelp wantedExtra attention is neededsecuritySecurity-sensitive workstellarTouches Stellar / Soroban code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions