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 scratchpad retrieving function #7

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

Conversation

shizzard
Copy link

The scratchpad retrieving function was implemented:
Interface:

const unsigned char *randomx_calculate_hash_scratchpad(
    randomx_vm *machine, 
    const void *input, 
    size_t inputSize, 
    const int randomxProgramCount
)

Differencies with randomx_calculate_hash_long_with_entropy_get_entropy:

  • Keep in the intrinsics calls;
  • Remove the final hash calculation step.

Differencies with randomx_calculate_hash:

  • Remove the final hash calculation step;
  • Make function interface simpler (no output pointer).

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