Add a comment about sha256 from BLST strangely requiring LTO

This commit is contained in:
Mamy André-Ratsimbazafy 2020-12-23 10:36:43 +01:00
parent ce0f7af862
commit bada5f1b69
No known key found for this signature in database
GPG Key ID: 7B88AD1FE79492E1
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ when BLS_BACKEND == BLST:
func update*(ctx: var sha256; digest: Eth2Digest) =
ctx.update digest.data
# TODO: not sure why but the "init", "update", "final" from BLST
# seem to require LTO, even though proper indirection was added in the wrapper
template withEth2Hash*(body: untyped): Eth2Digest =
## This little helper will init the hash function and return the sliced
## hash: