This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Also simplify README and update dependency version numbers.
arhag
reviewed
Jul 7, 2022
arhag
reviewed
Jul 7, 2022
arhag
reviewed
Jul 7, 2022
arhag
reviewed
Jul 7, 2022
arhag
reviewed
Jul 7, 2022
…ndation/mandel.cdt into larryk85/crypto-extensions
arhag
approved these changes
Jul 7, 2022
arhag
approved these changes
Jul 7, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Description
Adding support for CAPI for the new crypto primitives and C++ api support for SHA3/Keccak and the new
get_block_num
functions.API Changes
CAPI now has the functions:
void sha3( const char*, uint32_t, char*, uint32_t , int32_t)
int32_t blake2_f(uint32_t, const char*, uint32_t, const char*, uint32_t, const char*, uint32_t, const char*, uint32_t, int32_t, char* , uint32_t)
int32_t k1_recover( const char*, uint32_t, const char*, uint32_t, char*, uint32_t)
int32_t alt_bn128_add( const char*, uint32_t, const char*, uint32_t, char*, uint32_t)
int32_t alt_bn128_mul( const char*, uint32_t, const char*, uint32_t, char*, uint32_t)
int32_t alt_bn128_pair( const char*, uint32_t)
int32_t mod_exp( const char*, uint32_t, const char*, uint32_t, const char*, uint32_t, char*, uint32_t)
uint32_t get_block_num( void )
The C++ API now has the functions:
block_num_t current_block_number()
- this is in system.hppeosio::checksum256 sha3(const char*, uint32_t)
- this is in crypto.hppeosio::checksum256 keccak(const char*, uint32_t)
- this in crypto.hppvoid assert_sha3(const char*, uint32_t, eosio::checksum256&)
- this is in crypto.hppvoid assert_keccak(const char*, uint32_t, eosio::checksum256&)
- this in in crypto.hppDocumentation Additions