Giter Club home page Giter Club logo

Comments (4)

karelbilek avatar karelbilek commented on July 18, 2024 1

Hm, I wrote this issue because that's how trezor web wallet currently selects coin, but thinking about it more, I am not sure what is the correct ordering.

There is a paper from late 2016 "Simulation-based Evaluation of Coin Selection Strategies", it seems the best utxo selection algorithm for low fees is from AndroidWallet, which sorts utxos by priority - that is, value * inputAge

This selection algorithm however results in the biggest utxo set.

The FIFO algorithm (that is, the same one that trezor wallet has right now) has only slightly higher fees and lower utxo set; however, it reveals the oldest user's utxo in every transaction (privacy concern).

I cannot decide at this moment :D (I just know I don't want to solve a knapsack problem here like Core does.)

We can provide all the strategies and leave it to the user to select, but I don't like that, I think the default should be sane.

from coinselect.

dcousens avatar dcousens commented on July 18, 2024

@Runn1ng this could easily be added to the default sorting function.

But any advanced heuristics may need to balance privacy and eventual fees in this equation.

from coinselect.

dcousens avatar dcousens commented on July 18, 2024

I don't think age is as important with priority policy dropped in most clients.
Close?

from coinselect.

karelbilek avatar karelbilek commented on July 18, 2024

yep

from coinselect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.