-
Notifications
You must be signed in to change notification settings - Fork 43
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
BIP-Taproot: Optimizing Taptree for expected Tapscript spending cost #105
Comments
It seems reasonable to point out that you can add dummy branches to the Merkle tree to bring all branches to the same length, or even increase it further. |
@jachiang Feel like opening a PR for this? |
Hi @sipa, I would be happy to do so, but have also noticed that the following has been added to the security section:
I suppose dummy branches would fall under deviating from the optimal tree. Do you think we should make it explicit? |
@jachiang I don't have a very strong opinion, there is probably a lot more than can be said on the topic of constructing optimal trees (when optimal includes privacy considerations). |
Regarding TapTree construction based on tapscript probability weights (e.g. Huffman):
There seems to be a privacy trade-off when optimizing for expected script path spending cost, as standard outputs will likely feature standard probability weightings, especially in protocols such as lightning. Spending a script branch will reveal its height in the tree and may imply the contract type.
If authors agree, is this worth mentioning in taproot-BIP?
The text was updated successfully, but these errors were encountered: