Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Synchronizer.createProposedTransactions to expose PCZTs #1507

Open
str4d opened this issue Nov 18, 2024 · 0 comments
Open

Refactor Synchronizer.createProposedTransactions to expose PCZTs #1507

str4d opened this issue Nov 18, 2024 · 0 comments
Milestone

Comments

@str4d
Copy link
Collaborator

str4d commented Nov 18, 2024

Currently the public API takes a Proposal and returns the txids of fully-created and network-submitted transactions. We instead need to refactor this into several parts:

  • An API that takes a Proposal and produces one or more unauthorized PCZTs.
  • An API that takes a PCZT and applies whatever authorization steps the wallet is capable of doing (proof creation, signatures).
  • An API that takes one or more authorized PCZTs and finalizes them, stores the resulting transactions in wallet storage, and submits the transactions to the network.

The existing API can then be a wrapper around these parts that continues to be a one-pass synchronous API for users that don't need to interact with other devices during transaction creation.

@str4d str4d added this to the iOS Zashi 1.3 milestone Nov 20, 2024
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

No branches or pull requests

1 participant