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

Feature Gate Various Instructions #1

Open
bonedaddy opened this issue Apr 3, 2022 · 0 comments
Open

Feature Gate Various Instructions #1

bonedaddy opened this issue Apr 3, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@bonedaddy
Copy link
Member

bonedaddy commented Apr 3, 2022

Overview

Not everyone many need all the sighashes offered. Using cargo features we can selectively enable various instructions, preserving program space.

The only "scalable" categorization system I can think of is grouping instructions by the first letter of the instruction name. This way you can include all instructions that start with the letter d using:

sighashdb = {version = "0.1.5, features = ["d"]}
@bonedaddy bonedaddy added enhancement New feature or request good first issue Good for newcomers labels Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant