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

[3.0] Move new crypto primitives out of crypto.h and crypto.hpp, and add missing ones to the new hpp file #21

Merged
merged 2 commits into from
Aug 30, 2022

Conversation

linh2931
Copy link
Member

Resolve #17

  • Currently only sha3 is exposed in crypto.hpp. Add k1_recover, alt_bn128_add, alt_bn128_mul, alt_bn128_pair, and mod_exp to the header file.

  • The new primitives require crypto protocol feature to be activated. Move them out from regular crypto.h and crypto.hpp and place in crypto_ext.h and crypto_ext.hpp, so they are included only when needed.

Change Description

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

currently only sha3 is exposed in crypto.hpp; add k1_recover, alt_bn128_add, alt_bn128_mul,
alt_bn128_pair, and mod_exp to the header file. Those new primitives
require crypto protocol feature to be activated. Seperate them from regular crypto.h
and crypto.hpp so they are included only when needed.
@arhag arhag linked an issue Aug 25, 2022 that may be closed by this pull request
@arhag arhag mentioned this pull request Aug 26, 2022
@linh2931 linh2931 requested a review from larryk85 August 26, 2022 12:32
@linh2931 linh2931 mentioned this pull request Aug 29, 2022
@larryk85 larryk85 merged commit 8e928a9 into release/3.0 Aug 30, 2022
@larryk85 larryk85 deleted the expose_crypto_primitives branch August 30, 2022 14:39
@arhag arhag linked an issue Aug 30, 2022 that may be closed by this pull request
@larryk85 larryk85 mentioned this pull request Aug 30, 2022
2 tasks
larryk85 pushed a commit that referenced this pull request Aug 30, 2022
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.

error: use of undeclared identifier 'k1_recover' env.sha3 unresolveable
2 participants