dh

open override fun dh(keyPair: Pair<ByteArray, ByteArray>, publicKey: ByteArray): ByteArray

this is what secp256k1's secp256k1_ecdh() returns

Return

sha256(publicKey * keyPair.priv in compressed format)

Parameters

keyPair
publicKey