status-im / nim-secp256k1

A wrapper for libsecp256k1
Apache License 2.0
10 stars 5 forks source link

Get rid of ecdhRaw and export ecdh with custom hash func #48

Closed jangko closed 1 year ago

jangko commented 1 year ago

In preparation to fix https://github.com/status-im/nim-eth/issues/222, ecdhRaw is removed and ecdh with custom hash function is exported.

Also remove doAssert in ecdh and replace it with SkResult.

Also fix secp256k1_ecdh_hash_function signature by adding cint return type.