EIP-712 code linting

This commit is contained in:
Alexandre Paillier
2022-07-19 11:49:18 +02:00
parent 0cf21cdf73
commit de9e895ad9
44 changed files with 778 additions and 1402 deletions

View File

@@ -11,8 +11,8 @@ void handleSignEIP712Message_v0(uint8_t p1,
uint8_t dataLength,
unsigned int *flags,
unsigned int *tx) {
(void)tx;
(void)p2;
(void) tx;
(void) p2;
if (p1 != 00) {
THROW(0x6B00);
}
@@ -25,9 +25,7 @@ void handleSignEIP712Message_v0(uint8_t p1,
if ((workBuffer == NULL) || (dataLength < (KECCAK256_HASH_BYTESIZE * 2))) {
THROW(0x6a80);
}
memmove(tmpCtx.messageSigningContext712.domainHash,
workBuffer,
KECCAK256_HASH_BYTESIZE);
memmove(tmpCtx.messageSigningContext712.domainHash, workBuffer, KECCAK256_HASH_BYTESIZE);
memmove(tmpCtx.messageSigningContext712.messageHash,
workBuffer + KECCAK256_HASH_BYTESIZE,
KECCAK256_HASH_BYTESIZE);