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

Add huffman taptree constructor #1903

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Eunovo
Copy link

@Eunovo Eunovo commented Mar 26, 2023

Add a function to create a taptree with leaves sorted by weight (likelihood of use) #1766

Adapted from https://dev.to/eunovo/minimalizing-witness-weight-for-taproot-spend-script-paths-with-huffmans-algorithm-1j74

@Eunovo Eunovo force-pushed the feature/taproot-huffman-constructor branch from 5807d1a to 72438b6 Compare March 28, 2023 16:20
@junderw junderw requested a review from motorina0 March 28, 2023 21:15
@bitcoinjs bitcoinjs deleted a comment Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants