CuEVM
Functions
CuEVM::utils Namespace Reference

Functions

__host__ __device__ int32_t get_contract_address_create_word (ArithEnv &arith, evm_word_t *contract_address, evm_word_t *sender_address, evm_word_t *sender_nonce)
 
__host__ __device__ int32_t get_contract_address_create (ArithEnv &arith, bn_t &contract_address, const bn_t &sender_address, const bn_t &sender_nonce)
 
__host__ __device__ int32_t get_contract_address_create2 (ArithEnv &arith, bn_t &contract_address, const bn_t &sender_address, const bn_t &salt, const CuEVM::byte_array_t &init_code)
 
__host__ __device__ int32_t is_hex (const char hex)
 
__host__ __device__ char hex_from_nibble (const uint8_t nibble)
 
__host__ __device__ uint8_t nibble_from_hex (const char hex)
 
__host__ __device__ uint8_t byte_from_nibbles (const uint8_t high, const uint8_t low)
 
__host__ __device__ void hex_from_byte (char *dst, const uint8_t byte)
 
__host__ __device__ uint8_t byte_from_two_hex_char (const char high, const char low)
 
__host__ __device__ int32_t hex_string_length (const char *hex_string)
 
__host__ __device__ int32_t clean_hex_string (char **hex_string)
 
__host__ __device__ int32_t hex_string_without_leading_zeros (char *hex_string)
 
__host__ cJSON * get_json_from_file (const char *filepath)
 

Function Documentation

◆ byte_from_nibbles()

__host__ __device__ uint8_t CuEVM::utils::byte_from_nibbles ( const uint8_t  high,
const uint8_t  low 
)
Here is the caller graph for this function:

◆ byte_from_two_hex_char()

__host__ __device__ uint8_t CuEVM::utils::byte_from_two_hex_char ( const char  high,
const char  low 
)
Here is the call graph for this function:

◆ clean_hex_string()

__host__ __device__ int32_t CuEVM::utils::clean_hex_string ( char **  hex_string)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_contract_address_create()

__host__ __device__ int32_t CuEVM::utils::get_contract_address_create ( ArithEnv &  arith,
bn_t &  contract_address,
const bn_t &  sender_address,
const bn_t &  sender_nonce 
)
Here is the caller graph for this function:

◆ get_contract_address_create2()

__host__ __device__ int32_t CuEVM::utils::get_contract_address_create2 ( ArithEnv &  arith,
bn_t &  contract_address,
const bn_t &  sender_address,
const bn_t &  salt,
const CuEVM::byte_array_t &  init_code 
)
Here is the caller graph for this function:

◆ get_contract_address_create_word()

__host__ __device__ int32_t CuEVM::utils::get_contract_address_create_word ( ArithEnv &  arith,
evm_word_t *  contract_address,
evm_word_t *  sender_address,
evm_word_t *  sender_nonce 
)
Here is the caller graph for this function:

◆ get_json_from_file()

__host__ cJSON* CuEVM::utils::get_json_from_file ( const char *  filepath)
Here is the caller graph for this function:

◆ hex_from_byte()

__host__ __device__ void CuEVM::utils::hex_from_byte ( char *  dst,
const uint8_t  byte 
)
Here is the call graph for this function:

◆ hex_from_nibble()

__host__ __device__ char CuEVM::utils::hex_from_nibble ( const uint8_t  nibble)
Here is the caller graph for this function:

◆ hex_string_length()

__host__ __device__ int32_t CuEVM::utils::hex_string_length ( const char *  hex_string)
Here is the call graph for this function:

◆ hex_string_without_leading_zeros()

__host__ __device__ int32_t CuEVM::utils::hex_string_without_leading_zeros ( char *  hex_string)
Here is the call graph for this function:

◆ is_hex()

__host__ __device__ int32_t CuEVM::utils::is_hex ( const char  hex)
Here is the caller graph for this function:

◆ nibble_from_hex()

__host__ __device__ uint8_t CuEVM::utils::nibble_from_hex ( const char  hex)
Here is the caller graph for this function: