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

bip199 bytecode optimization #738

wants to merge 1 commit into
base: master


None yet
2 participants

mattBlackDesign commented Nov 14, 2018

This PR optimizes the bytecode script for your typical HTLC. Seeing as OP_DUP OP_HASH160 are both repeated in both the OP_IF and OP_ELSE branches of the script, this optimization proposes extracting that outside the if statements, in order to reduce the number of bytes required for the script by 1.

@mattBlackDesign mattBlackDesign changed the title from Add bip199 bytecode optimization to bip199 bytecode optimization Nov 14, 2018


This comment has been minimized.

jabbfun007 commented Nov 22, 2018


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment