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
Files to start with
Tier: L (1-2 weeks) Type: audit
Context
sdk/src/chains/stellar/scalar.ts::signWithScalaris 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
@noble/curves,@stellar/stellar-sdk, WebCrypto, Pythoncryptography.hazmatAcceptance criteria
sdk/audits/2026-XX-author-signwithscalar.mdtest/chains/stellar/signwithscalar-vectors.test.tssignWithScalaris necessary (vs reconstructing a seed)Files to start with
sdk/src/chains/stellar/scalar.ts