Skip to content

#597 Escrow-Safety | Dual-Party Multi-Sig Time-Lock with Automated Reversion - #2

Open
oraimoitel wants to merge 1 commit into
mainfrom
feature/escrow-safety-597
Open

#597 Escrow-Safety | Dual-Party Multi-Sig Time-Lock with Automated Reversion#2
oraimoitel wants to merge 1 commit into
mainfrom
feature/escrow-safety-597

Conversation

@oraimoitel

Copy link
Copy Markdown
Owner

Description

Settlement escrows require dual approval before expiry, with automated refund rights returning to the depositor post-deadline.

Changes

  • Created src/escrow/timelock.rs with Escrow struct and lifecycle functions
  • create: deposit funds into escrow contract
  • approve_by_sender / approve_by_receiver: dual-party signatures
  • release: transfers to receiver when both approve before expiry
  • refund: single-signature depositor refund after expiry
  • Comprehensive state machine tests covering all transition paths

Closes StellarFlow-Network#597

Implement settlement escrow with dual-party approval before target ledger and
automated single-signature depositor refund after expiry. Features:
- create, approve_by_sender, approve_by_receiver, release, refund
- State transitions with proper guards (already released, wrong caller, expired)
- Comprehensive unit test suite covering all paths
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.

⌛ Escrow-Safety | Dual-Party Multi-Sig Time-Lock with Automated Reversion

1 participant