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

[WIP] Add fees and coin selection #159

Draft
wants to merge 42 commits into
base: development
Choose a base branch
from

Conversation

callebtc
Copy link
Contributor

@callebtc callebtc commented Jul 26, 2024

Introduces support for fees for spending ecash with the mint. Fees are published in the /v1/keysets response (see NUT-02). Also introduces a new input coinselection algorithm to minimize fees when spending coins and an output selection, to maintain a diverse set of amounts in the user's wallet, increasing the chance for being able to make offline transactions in the future.

PR Tasks

  • Open PR
  • run npm run test --> no failing unit tests
  • run npm run format

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.

3 participants