Repository navigation
Open
Labels
Description
Phase: E6 — SDK & integrator tooling (see ROADMAP.md)
Complexity: High (200 pts)
Description
Attestation-based release only works if attesters can produce exactly the message the contract verifies: domain-separated, network-bound, byte-exact. Getting that wrong means signatures that never verify (or, worse, are replayable). The SDK should own message construction and signing.
Requirements & context
What to do:
- Add
buildAttestationMessage({ contractId, networkPassphrase, escrowId, action })matching the contract byte for byte. - Add
signAttestation(message, signer)andreleaseWithAttestation({ escrowId, signature }). - Shared test vectors (message bytes + signatures) used by both Rust and TS tests.
- Testnet integration test with an offline attester key.
Files likely involved:
sdk/src/index.ts(EscrowClientmethods; new types, constants and errors go in the matching topical module undersdk/src/)sdk/src/generated/contract-client.tssdk/tests/
Edge cases / constraints:
- The message must include the network so testnet attestations can't be used on mainnet.
- Never accept a raw secret where a signer interface fits.
- Follow the
ARCHITECTURE_ESSENTIALS.mdhard rules (no PHI or healthcare concepts anywhere, tests for every contract change, strict semver for the SDK, testnet only).
Suggested execution
- Fork the repo and branch off
main:git checkout -b feat/sdk-attestation-signing-and-release-with - Implement the changes above. If you hit a design question the issue doesn't answer, comment here before guessing.
- Run
cargo testandcargo build --target wasm32v1-none --releaseincontracts/escrow/. For SDK changes, runnpm run typecheck && npm run buildinsdk/, plusnpm run test:integrationwhen the change touches network calls. Contract logic changes need tests incontracts/escrow/tests/(hard rule 2). - Commit with a clear message, for example:
feat(sdk): SDK: attestation signing and release-with-attestation - Open a PR against
mainwithCloses #<this issue number>in the description.
Definition of done
- Builders + signing + tests
- Shared vectors
- Version bump + changelog
- Your
ROADMAP.mditem ticked in place, achangelog.d/<issue-number>-<short-slug>.mdfragment (seechangelog.d/README.md), acontract-changes.d/<issue-number>-<short-slug>.mdfragment for any change undercontracts/escrow/src/(never editCONTRACT_VERSION), and, if the contract or SDK surface changed, the newARCHITECTURE_ESSENTIALS.md/README.mdlines in adocs.d/<issue-number>-<short-slug>.mdfragment (seedocs.d/README.md) - CI green
How this will be reviewed
Reviewer verifies a vector signature with an independent ed25519 implementation.
Guidelines
- Claiming: comment to claim before you start, and check nobody else is assigned.
- PR description: say what changed and why, include
Closes #<issue>, and paste test output (plus screenshots for UI work). - Timeframe: open a PR within 7 days of assignment. If you get stuck, say so in the issue early rather than going quiet.
Depends on: The matching Phase E5 contract issue opened alongside this one (the contract function must exist first).
Activity
jaynomyaro commentedon Oct 16, 2026
@jaynomyaro has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @jaynomyaro to this issue.
Bosskandy1 commentedon Oct 16, 2026
@Bosskandy1 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Bosskandy1 to this issue.
drips-wave commentedon Oct 16, 2026
Congratulations, @AllysiadevOps! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @AllysiadevOps: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
rajiabdulrahmon2020-ui commentedon Nov 21, 2026
@rajiabdulrahmon2020-ui has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @rajiabdulrahmon2020-ui to this issue.
drips-wave commentedon Nov 21, 2026
Congratulations, @rajiabdulrahmon2020-ui! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @rajiabdulrahmon2020-ui: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊