Clear init secret if becoming a slave
This commit is contained in:
parent
734d9a2c75
commit
b3f8b30dab
|
@ -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)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user