From f8c54492f192f19cdaefe259d944551986b65ae6 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 2 Aug 2024 14:11:32 +0200 Subject: [PATCH] gcc compilation fix --- src/crypto/crypto-sugar.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crypto/crypto-sugar.h b/src/crypto/crypto-sugar.h index 3738d118..2493360f 100644 --- a/src/crypto/crypto-sugar.h +++ b/src/crypto/crypto-sugar.h @@ -6,6 +6,7 @@ // Note: This file originates from tests/functional_tests/crypto_tests.cpp #pragma once #include +#include #include #include "crypto.h" #include "eth_signature.h" @@ -1212,6 +1213,7 @@ namespace crypto void add_eth_pub_key(const crypto::eth_public_key& epk) { + static_assert(sizeof(item_t) == 32, "unexpected size of hs_t::item_t"); static_assert(sizeof epk.data == 33, "unexpected size of eth_public_key"); m_elements.emplace_back(c_scalar_0); m_elements.emplace_back(c_scalar_0);