nim-eth icon indicating copy to clipboard operation
nim-eth copied to clipboard

Use custom hash function for eth1 ecdh

Open arnetheduck opened this issue 5 years ago • 0 comments

We currently extend upstream libsecp256k1 to add a secp256k1_ecdh_raw function - since this was implemented, upstream has added the ability do do custom hash functions that could be used to implement this ethereum-specific way of deriving keys - as such, we can stop patching upstream and move the logic into nim-eth.

Upstream discussion: https://github.com/bitcoin-core/secp256k1/issues/352

Implementation blueprint: https://github.com/bitcoin-core/secp256k1/blob/master/src/modules/ecdh/tests_impl.h#L18-L25

arnetheduck avatar Apr 15 '20 06:04 arnetheduck