Skip to content

feat: add SDK data serialization and optimized transaction signing (#… - #1379

Open
villadel wants to merge 1 commit into
Stellar-split:mainfrom
villadel:feat/issues-1350-1374-serialization-signing-optimization
Open

villadel wants to merge 1 commit into
Stellar-split:mainfrom
villadel:feat/issues-1350-1374-serialization-signing-optimization

Conversation

@villadel

Copy link
Copy Markdown

…1350, #1374)

Issue #1350 – SDK Data Serialization

  • Add src/serialization.ts: SerializationRegistry with built-in JSON, base64, hex, and binary codecs
  • Support custom format registration and override via registerFormat/setFormat
  • Versioned serialization: wraps payloads in a versioned envelope (__v) for safe migrations and validates on deserialize
  • Per-operation tracking: history log with format, operation, duration, timestamp, and error; getStats() aggregates by format
  • Default singleton registry with serialize/deserialize convenience helpers
  • Tests: src/tests/serialization.test.ts – five suites covering built-in formats, custom formats, versioning, tracking, and helpers

Issue #1374 – Optimized Transaction Signing with Batch Support

  • Add src/transactionSigningOptimization.ts: SigningKeyManager with O(1) Map-based key lookup and configurable maxKeys cap
  • OptimizedTransactionSigner supports single sign() and signBatch() with configurable concurrency (batchConcurrency) to bound memory footprint
  • Missing-key batch entries fail gracefully without aborting the batch
  • SigningMetrics: totalSigned, totalFailed, totalBatches, avgDurationMs
  • Tests: src/tests/transactionSigningOptimization.test.ts – six suites covering key CRUD, single signing, batch signing, metrics, memory management, and concurrency chunking

Exports added to src/index.ts for both modules.

Summary

Changes

Testing

Checklist

  • I was assigned to the linked issue
  • npm run lint (type-check) passes
  • Tests added or updated, and passing
  • Docs and CHANGELOG.md (Unreleased) updated if behavior changed
  • No unrelated changes

CLOSES
closes #1350
closes #1374

…tellar-split#1350, Stellar-split#1374)

Issue Stellar-split#1350 – SDK Data Serialization
- Add src/serialization.ts: SerializationRegistry with built-in JSON,
  base64, hex, and binary codecs
- Support custom format registration and override via registerFormat/setFormat
- Versioned serialization: wraps payloads in a versioned envelope (__v)
  for safe migrations and validates on deserialize
- Per-operation tracking: history log with format, operation, duration,
  timestamp, and error; getStats() aggregates by format
- Default singleton registry with serialize/deserialize convenience helpers
- Tests: src/__tests__/serialization.test.ts – five suites covering
  built-in formats, custom formats, versioning, tracking, and helpers

Issue Stellar-split#1374 – Optimized Transaction Signing with Batch Support
- Add src/transactionSigningOptimization.ts: SigningKeyManager with O(1)
  Map-based key lookup and configurable maxKeys cap
- OptimizedTransactionSigner supports single sign() and signBatch() with
  configurable concurrency (batchConcurrency) to bound memory footprint
- Missing-key batch entries fail gracefully without aborting the batch
- SigningMetrics: totalSigned, totalFailed, totalBatches, avgDurationMs
- Tests: src/__tests__/transactionSigningOptimization.test.ts – six suites
  covering key CRUD, single signing, batch signing, metrics, memory
  management, and concurrency chunking

Exports added to src/index.ts for both modules.
@drips-wave

drips-wave Bot commented Nov 24, 2026

Copy link
Copy Markdown

@villadel Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize transaction signing performance and add batch support Add SDK data serialization

1 participant