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

@@ -5,10 +5,10 @@
#include "uint_common.h"
void prepare_eth2_public_key() {
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);
}
// clang-format off

View File

@@ -4,17 +4,17 @@
#include "uint_common.h"
void prepare_domain_hash_v0() {
bytes_to_string(strings.tmp.tmp,
sizeof(strings.tmp.tmp),
tmpCtx.messageSigningContext712.domainHash,
KECCAK256_HASH_BYTESIZE);
array_bytes_string(strings.tmp.tmp,
sizeof(strings.tmp.tmp),
tmpCtx.messageSigningContext712.domainHash,
KECCAK256_HASH_BYTESIZE);
}
void prepare_message_hash_v0() {
bytes_to_string(strings.tmp.tmp,
sizeof(strings.tmp.tmp),
tmpCtx.messageSigningContext712.messageHash,
KECCAK256_HASH_BYTESIZE);
array_bytes_string(strings.tmp.tmp,
sizeof(strings.tmp.tmp),
tmpCtx.messageSigningContext712.messageHash,
KECCAK256_HASH_BYTESIZE);
}
// clang-format off