Well you're not alone in wanting high(uint64). The easiest is
    
    
    proc high(T: type uint64): uint64 =
      not 0'u64
    
    
    Run

Make sure to check the works done at Status for crypto in Nim:

  * 
[https://github.com/cheatfate/nimcrypto](https://github.com/cheatfate/nimcrypto)
 -> crypto primitives (AES, SHA2-3, Blake, HMAC, pbkdf, ...)
  * We also have some elliptic curve wrappers (secp256k1, BN and BLS, including 
pairing for the last 2).
  * Also a start on constant-time bigint though it's mostly something I do on 
the side: 
[https://github.com/status-im/nim-constantine](https://github.com/status-im/nim-constantine).



A couple of others have implemented HKDF and an alternative wrapper to BLS as 
well.

Reply via email to