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()
|
||||
|
||||
def handshake(self, text):
|
||||
self.init_secret = '' # clear it
|
||||
self.master_pub = X25519PublicKey.from_public_bytes(base58.b58decode(text))
|
||||
slave_pub = self.get_pub()
|
||||
self.set_otp(slave_pub)
|
||||
|
|
Loading…
Reference in New Issue
Block a user