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

HW accelerated tagged_sha256 #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

scgbckbone
Copy link
Contributor

  • with ability to provide mid-state:
ngu.hash.sha256t(tag, msg)   # will perform 3x sha256

ngu.hash.sha256t(tag_hash, msg, True)   # just 1x sha256 (assuming tag_has was pre-computed in advance, which is the case with BIP340-342)

ngu.secp256k1.tagged_sha256(tag, msg)  # 3x sha256 (kept for reference)

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