Update ethereum plugin-sdk

This commit is contained in:
Charles-Edouard de la Vergne
2024-05-07 16:01:12 +02:00
parent 817e7a846a
commit c0d19fdf6d
8 changed files with 23 additions and 42 deletions

View File

@@ -21,10 +21,10 @@ static void reviewChoice(bool confirm) {
}
void ui_display_public_eth2(void) {
bytes_to_string(strings.tmp.tmp,
sizeof(strings.tmp.tmp),
tmpCtx.publicKeyContext.publicKey.W,
48);
array_bytes_string(strings.tmp.tmp,
sizeof(strings.tmp.tmp),
tmpCtx.publicKeyContext.publicKey.W,
48);
strlcpy(g_stax_shared_buffer, "Verify ETH2\naddress", sizeof(g_stax_shared_buffer));
nbgl_useCaseAddressReview(strings.tmp.tmp,
NULL,

View File

@@ -18,7 +18,7 @@ static void messageReviewChoice_cb(bool confirm) {
}
static char *format_hash(const uint8_t *hash, char *buffer, size_t buffer_size, size_t offset) {
bytes_to_string(buffer + offset, buffer_size - offset, hash, KECCAK256_HASH_BYTESIZE);
array_bytes_string(buffer + offset, buffer_size - offset, hash, KECCAK256_HASH_BYTESIZE);
return buffer + offset;
}