From 17a7789a901e95b8d07295f36d9580b8c06fc938 Mon Sep 17 00:00:00 2001 From: Igor Machado Date: Tue, 29 May 2018 16:04:18 -0300 Subject: [PATCH 1/2] removed flexible checkwitness for 66 or 40 bytes addresses --- neo/SmartContract/StateReader.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/neo/SmartContract/StateReader.py b/neo/SmartContract/StateReader.py index 86dde1f79..28ec85442 100644 --- a/neo/SmartContract/StateReader.py +++ b/neo/SmartContract/StateReader.py @@ -276,9 +276,6 @@ def Runtime_CheckWitness(self, engine): hashOrPubkey = engine.EvaluationStack.Pop().GetByteArray() - if len(hashOrPubkey) == 66 or len(hashOrPubkey) == 40: - hashOrPubkey = binascii.unhexlify(hashOrPubkey) - result = False if len(hashOrPubkey) == 20: From 011074f3d8cfe0209f1b8f1a3c8259c2180047e0 Mon Sep 17 00:00:00 2001 From: Igor Machado Date: Thu, 31 May 2018 18:17:49 -0300 Subject: [PATCH 2/2] updated changelog --- CHANGELOG.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 133bc9e24..87e744a76 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,10 @@ Changelog All notable changes to this project are documented in this file. +[0.6.9] 2018-05-31 +----------------------- +- CheckWitness won't accept 40 or 66 byte addresses + [0.6.9] 2018-04-30 ----------------------- - alter logging