16-byte align ValidatorSig and TrustedSig (#5301)

This commit is contained in:
tersec 2023-08-17 06:27:26 +00:00 committed by GitHub
parent 22b7b721d0
commit 0d1614326d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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