Clear init secret if becoming a slave

This commit is contained in:
Tanner Collin 2019-09-12 05:02:16 +00:00
parent 734d9a2c75
commit b3f8b30dab
2 changed files with 2 additions and 1 deletions

View File

@ -171,6 +171,7 @@ class common:
return self.get_pub() return self.get_pub()
def handshake(self, text): def handshake(self, text):
self.init_secret = '' # clear it
self.master_pub = X25519PublicKey.from_public_bytes(base58.b58decode(text)) self.master_pub = X25519PublicKey.from_public_bytes(base58.b58decode(text))
slave_pub = self.get_pub() slave_pub = self.get_pub()
self.set_otp(slave_pub) self.set_otp(slave_pub)

View File

@ -5,7 +5,7 @@ with io.open('README.md', encoding='utf-8') as fh:
long_description = fh.read() long_description = fh.read()
setuptools.setup(name='bwb', setuptools.setup(name='bwb',
version='2.0.2', version='2.0.3',
description='bwb', description='bwb',
long_description=long_description, long_description=long_description,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',