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

implement is_zeroes for checking all-zero hex strings #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

borngraced
Copy link

This PR introduces is_zeroes helper function, which makes it easy to check if a hex string consists entirely of zeroes, with optional support for a "0x" prefix. This function will be helpful in scenarios where we need to verify if a given value is zeroed out, such as in blockchain, cryptographic where null values are often represented as zero-filled hex strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant