Skip to content

stealth-batch-sender Soroban contract #47

Description

@truthixify

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

Context

EVM WraithSender already supports batchSendETH and batchSendERC20. Stellar has stealth-sender for single transfers and stealth-splitter for proportional 1:N distribution, but no equivalent for the simple "send to N pre-computed stealth addresses in one transaction" use case.

Scope

  • New crate contracts/stellar/stealth-batch-sender/
  • batch_send(from, transfers: Vec<Transfer>, asset) entrypoint where each Transfer carries the pre-computed stealth address, ephemeral pub key, and amount
  • All-or-nothing semantics via Soroban transaction model
  • Per-transfer announcement emission
  • Cap batch size (justify against Soroban resource budget)
  • Tests: success, atomicity-on-mid-batch-failure, max-size, validation

Acceptance criteria

  • New crate compiles and passes its own tests
  • Property test for atomicity guarantee
  • Resource-budget comparison vs. N individual stealth-sender::send calls
  • SDK follow-up issue filed for buildBatchSendStellar builder
  • Demo follow-up issue filed for batch-send UI

Files to start with

  • contracts/stellar/stealth-sender/src/lib.rs (single-send reference)
  • contracts/stellar/stealth-splitter/src/lib.rs (atomic distribution reference)
  • contracts/evm/contracts/WraithSender.sol::batchSendETH (parity)

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips NetworkfeatureNew feature workhelp wantedExtra attention is neededstellarTouches 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