Closed larryk85 closed 2 years ago
Adding support for CAPI for the new crypto primitives and C++ api support for SHA3/Keccak and the new get_block_num functions.
get_block_num
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()
eosio::checksum256 sha3(const char*, uint32_t)
eosio::checksum256 keccak(const char*, uint32_t)
void assert_sha3(const char*, uint32_t, eosio::checksum256&)
void assert_keccak(const char*, uint32_t, eosio::checksum256&)
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