Skip to content

core: implement transaction signing abstraction layer #21

@EmeditWeb

Description

@EmeditWeb

Problem

Transaction signing logic is duplicated across loan
repayment, vouch submission, and deposit flows.

What To Build

  1. TransactionSigner service
  2. useTransaction hook with consistent states
  3. Replace all inline signing with abstraction

Files To Touch

  • src/transactions/transaction-signer.service.ts (new)
  • hooks/useTransaction.ts (new)
  • All screens with transaction signing

Acceptance Criteria

  • All signing routes through TransactionSigner
  • Consistent states across all flows
  • User rejection handled gracefully
  • No duplicate signing logic anywhere
  • npx expo export --platform web passes

Mandatory Checks Before PR

  • npx expo export --platform web passes
  • No any types
  • Unit tests for TransactionSigner
  • PR references this issue

Metadata

Metadata

Assignees

Labels

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