|
cryptnox-sdk-esp32 1.0.0
ESP32 SDK for Cryptnox Hardware Wallet
|
Go to the source code of this file.
Macros | |
| #define | ITEMS_BUF_MAX 320U |
Functions | |
| static uint8_t | be_minimal (uint64_t value, uint8_t out[8]) |
| static size_t | rlp_bytes (const uint8_t *data, size_t data_len, uint8_t *out) |
| static size_t | rlp_uint64 (uint64_t value, uint8_t *out) |
| static size_t | rlp_int256 (const uint8_t data[32], uint8_t *out) |
| static size_t | rlp_list_header (size_t content_len, uint8_t *out) |
| static size_t | encode_common_fields (const eth_tx_t *tx, uint8_t *items) |
| size_t | eth_rlp_encode_unsigned (const eth_tx_t *tx, uint8_t *out, size_t out_max) |
| size_t | eth_rlp_encode_signed (const eth_tx_t *tx, uint8_t v, const uint8_t r[32], const uint8_t s[32], uint8_t *out, size_t out_max) |
| #define ITEMS_BUF_MAX 320U |
Definition at line 10 of file eth_rlp.cpp.
Referenced by eth_rlp_encode_signed(), and eth_rlp_encode_unsigned().
|
static |
Definition at line 22 of file eth_rlp.cpp.
Referenced by rlp_bytes(), rlp_list_header(), and rlp_uint64().
|
static |
Definition at line 133 of file eth_rlp.cpp.
References eth_tx_t::calldata, eth_tx_t::calldata_len, eth_tx_t::chain_id, eth_tx_t::eth_value, eth_tx_t::gas_limit, eth_tx_t::max_fee, eth_tx_t::max_priority_fee, eth_tx_t::nonce, rlp_bytes(), rlp_uint64(), and eth_tx_t::to.
Referenced by eth_rlp_encode_signed(), and eth_rlp_encode_unsigned().
| size_t eth_rlp_encode_signed | ( | const eth_tx_t * | tx, |
| uint8_t | v, | ||
| const uint8_t | r[32], | ||
| const uint8_t | s[32], | ||
| uint8_t * | out, | ||
| size_t | out_max ) |
Definition at line 169 of file eth_rlp.cpp.
References encode_common_fields(), ITEMS_BUF_MAX, rlp_int256(), rlp_list_header(), and rlp_uint64().
Referenced by signing_loop().
| size_t eth_rlp_encode_unsigned | ( | const eth_tx_t * | tx, |
| uint8_t * | out, | ||
| size_t | out_max ) |
Definition at line 152 of file eth_rlp.cpp.
References encode_common_fields(), ITEMS_BUF_MAX, and rlp_list_header().
Referenced by signing_loop().
|
static |
Definition at line 51 of file eth_rlp.cpp.
References be_minimal().
Referenced by encode_common_fields(), rlp_int256(), and rlp_uint64().
|
static |
Definition at line 98 of file eth_rlp.cpp.
References rlp_bytes().
Referenced by eth_rlp_encode_signed().
|
static |
Definition at line 116 of file eth_rlp.cpp.
References be_minimal().
Referenced by eth_rlp_encode_signed(), and eth_rlp_encode_unsigned().
|
static |
Definition at line 82 of file eth_rlp.cpp.
References be_minimal(), and rlp_bytes().
Referenced by encode_common_fields(), and eth_rlp_encode_signed().