snow icon indicating copy to clipboard operation
snow copied to clipboard

How to accept multiple public keys?

Open vifino opened this issue 6 years ago • 2 comments

Hey. I've been wondering how to properly accept multiple public keys instead of just a single one. Does simply not providing a remote_public_key(&pubkey) and checking HandshakeState.get_remote_static() work? Using a psk works, but it's not ideal.

vifino avatar Nov 21 '19 13:11 vifino

~It could be really useful to check against a list of allowed public keys instead of just allowing a single one.~ I think simply not providing a remote_public_key and checking HandshakeState.get_remote_static() should work.

fogti avatar Mar 29 '20 22:03 fogti

@vifino sorry for not getting back to you. @zserik is correct - using the X pattern (static key for sender is transmitted) will allow you to receive a static key and then verify it in whatever way you'd like.

mcginty avatar Apr 05 '20 15:04 mcginty