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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support numbers as input for sha1 #16

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

Conversation

axelhodler
Copy link

Without the change attempting 1 OP_SHA1 in the IDE will get stuck and yield
Uncaught TypeError: msg.utf8Encode is not a function in the console

The String conversion was taken from Sha256.hash which works fine

msg = msg.toString(16);

Thanks a bunch for the project 馃憤

Else attempting `1 OP_SHA1` in the IDE will get stuck and yield
`Uncaught TypeError: msg.utf8Encode is not a function`
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.

None yet

1 participant