From 701cfd4c5af1bf3e0f664086f1cd4810aa1761d6 Mon Sep 17 00:00:00 2001 From: ofek Date: Mon, 10 Apr 2017 19:42:33 -0400 Subject: [PATCH] remove unused arg --- README.rst | 3 +-- coincurve/keys.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 9d4f1c1..c18ae63 100644 --- a/README.rst +++ b/README.rst @@ -108,14 +108,13 @@ Methods * Returns: ``bytes`` -``ecdh(public_key, update=False)`` +``ecdh(public_key)`` Computes a Diffie-Hellman secret in constant time. * Parameters: - **public_key** (``bytes``) - Another party's public key in compressed or uncompressed form. - - **update** - If ``True``, will update and return ``self``. * Returns: ``bytes`` diff --git a/coincurve/keys.py b/coincurve/keys.py index 3d7a5ab..76231dc 100644 --- a/coincurve/keys.py +++ b/coincurve/keys.py @@ -58,7 +58,7 @@ class PrivateKey: return recoverable_to_der(signature, self.context) - def ecdh(self, public_key, update=False): + def ecdh(self, public_key): secret = ffi.new('unsigned char [32]') lib.secp256k1_ecdh(