status-im / nim-blscurve

Nim implementation of BLS signature scheme (Boneh-Lynn-Shacham) over Barreto-Lynn-Scott (BLS) curve BLS12-381
Apache License 2.0
26 stars 11 forks source link

Use uint64 (or uint128) on 64-bit machine #5

Closed mratsim closed 6 years ago

mratsim commented 6 years ago

For quick cross-platform development and 32/64-bit compat, the default is to use uint32 for everything.

In production we can expect x2 speed with uint64. This is defined by CHUNKS

https://github.com/status-im/nim-milagro-crypto/blob/master/src/milagro_crypto/generated/arch.h#L42-L46

cheatfate commented 6 years ago

Done