From 0d1614326dd8df0515c5616129c6473b369ea9ed Mon Sep 17 00:00:00 2001 From: tersec Date: Thu, 17 Aug 2023 06:27:26 +0000 Subject: [PATCH] 16-byte align ValidatorSig and TrustedSig (#5301) --- beacon_chain/spec/crypto.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/spec/crypto.nim b/beacon_chain/spec/crypto.nim index 87958e039..e229ae861 100644 --- a/beacon_chain/spec/crypto.nim +++ b/beacon_chain/spec/crypto.nim @@ -67,7 +67,7 @@ type CookedPubKey* = distinct blscurve.PublicKey ## Valid deserialized key ValidatorSig* = object - blob*: array[RawSigSize, byte] + blob* {.align: 16.}: array[RawSigSize, byte] ValidatorPrivKey* = distinct blscurve.SecretKey @@ -76,7 +76,7 @@ type BlsResult*[T] = Result[T, cstring] TrustedSig* = object - data*: array[RawSigSize, byte] + data* {.align: 16.}: array[RawSigSize, byte] SomeSig* = TrustedSig | ValidatorSig