Skip to content

Add Swap Conditional Reveal with Multi-Party Signatures #410

@fejilaup-cloud

Description

@fejilaup-cloud

Description

For complex IP sales involving multiple parties (e.g., co-inventors), the decryption key should only be revealed if all parties sign off. Currently, only the seller can reveal.

Tasks

  • Add required_signers: Vec to SwapRecord
  • Implement initiate_swap_with_signers(env, ip_id, price, signers) -> u64
  • Implement sign_swap_reveal(env, swap_id) — any required signer
  • Only allow key reveal after all signers have signed
  • Add tests for multi-party reveal flow

Priority: Medium | Estimated Time: 3 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

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