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

Implement transaction balancing algorithm #6

Open
vlasin opened this issue Apr 29, 2024 · 0 comments
Open

Implement transaction balancing algorithm #6

vlasin opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@vlasin
Copy link
Contributor

vlasin commented Apr 29, 2024

We need to design a custom balancing algorithm that

  • chooses inputs,
  • adds change outputs,
  • and calculates fees
    All without running the Plonk prove algorithm as it is costly. The prove algorithm will run once the inputs and outputs are fixed and the fees have been calculated correctly.

Inputs to the algorithm:

  • Partial transaction to be balanced;
  • A set of input UTxOs that could be consumed to balance the transaction;
  • The address for change outputs.

The algorithm outputs the balanced transaction ready to be submitted to the blockchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants