Skip to content

[Taproot] Add an utility for sorting leafs in order of weight (likelihood of use) #1766

Open
@motorina0

Description

@motorina0

It should not be required to sort in any sort of order, but we should offer some sort of helper function to help out.

Input:

  • an ordered list of scripts with weights attached

Output

  • a binary tree were the weights of the script are correlated with the length of the path from the tree root to that script leaf

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions