Skip to content

feat: add contract execution policy, audit trails, and witness validation - #537

Merged
Just-Bamford merged 1 commit into
Sorokit:mainfrom
oomokaro1:feat/509-511-516-510-improvements
Aug 30, 2026
Merged

feat: add contract execution policy, audit trails, and witness validation#537
Just-Bamford merged 1 commit into
Sorokit:mainfrom
oomokaro1:feat/509-511-516-510-improvements

Conversation

@oomokaro1

Copy link
Copy Markdown
Contributor

Closes #509, Closes #511, Closes #516, Closes #510

Type of Change

  • New feature (non-breaking change that adds functionality)

Summary

This PR adds four new features to the Sorokit SDK:

  1. Contract Call Execution Policy (Implement contract call timeout, cancellation, and recovery controls #509) - Adds withExecutionPolicy() for configurable timeouts, AbortSignal support, and recovery strategies (fail/retry/cache/fallback) for contract calls.

  2. Key Rotation Audit (Implement account key rotation auditing and historical security tracking #511) - Adds recordKeyRotation(), getKeyRotationHistory(), and detectSuspiciousRotationPattern() for tracking and auditing account key rotation events.

  3. Contract Audit Trail (Implement Soroban contract audit trail with query and export capabilities #516) - Adds recordContractInvocation(), queryContractAuditLog(), and export utilities (JSON/CSV) for structured contract invocation audit logging.

  4. Transaction Witness Validation (Implement transaction witness validation and multi-signature verification #510) - Adds verifyTransactionSignatures() for cryptographic signature verification with multi-signature threshold support.

Motivation / Context

These features address security, compliance, and reliability requirements:

  • Timeout/cancellation prevents indefinite blocking on contract calls
  • Audit trails enable security investigations and compliance workflows
  • Witness validation ensures transaction signatures are cryptographically valid

All features include comprehensive tests and are exported through the main SDK entry point.

Closes #509, Closes #511, Closes #516, Closes #510

…it trail, and witness validation

- Add ContractCallExecutionPolicy with timeout, abort signal, and recovery strategies (Sorokit#509)
- Add key rotation audit tracking with history query and suspicious pattern detection (Sorokit#511)
- Add contract invocation audit trail with query, pagination, and JSON/CSV export (Sorokit#516)
- Add transaction witness validation for multi-signature verification (Sorokit#510)
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@oomokaro1 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

@Just-Bamford
Just-Bamford merged commit 72f7d97 into Sorokit:main Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants