From 2f3a32f8e89c6bbefc660099e2a8589e9988f4ec Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 9 Jul 2018 13:43:06 +0200 Subject: [PATCH] trezorlib: drop support for EncryptMessage and DecryptMessage --- CHANGELOG.md | 3 +++ trezorlib/client.py | 13 ------------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6f96485ce..90fca14d34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,9 @@ _At the moment, the project does __not__ adhere to [Semantic Versioning](http:// - protobuf classes are no longer part of the source distribution and must be compiled locally - Stellar: addresses are always strings +### Removed +- `EncryptMessage` and `DecryptMessage` actions are gone + ### Fixed: - Stellar: several bugs in the XDR parser were fixed diff --git a/trezorlib/client.py b/trezorlib/client.py index 31da8302cf..e8cc4d67a0 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -728,19 +728,6 @@ class ProtocolMixin(object): return True return False - @expect(proto.EncryptedMessage) - def encrypt_message(self, pubkey, message, display_only, coin_name, n): - if coin_name and n: - n = self._convert_prime(n) - return self.call(proto.EncryptMessage(pubkey=pubkey, message=message, display_only=display_only, coin_name=coin_name, address_n=n)) - else: - return self.call(proto.EncryptMessage(pubkey=pubkey, message=message, display_only=display_only)) - - @expect(proto.DecryptedMessage) - def decrypt_message(self, n, nonce, message, msg_hmac): - n = self._convert_prime(n) - return self.call(proto.DecryptMessage(address_n=n, nonce=nonce, message=message, hmac=msg_hmac)) - @field('value') @expect(proto.CipheredKeyValue) def encrypt_keyvalue(self, n, key, value, ask_on_encrypt=True, ask_on_decrypt=True, iv=b''):