Only Alice should perform Bluetooth discovery.

This commit is contained in:
akwizgran
2020-10-27 14:22:30 +00:00
parent 8cbb38ee68
commit 922a52bf83
8 changed files with 26 additions and 15 deletions

View File

@@ -41,10 +41,12 @@ public interface DuplexPlugin extends Plugin {
/**
* Attempts to connect to the remote peer specified in the given descriptor.
* Returns null if no connection can be established.
*
* @param alice True if the local party is Alice
*/
@Nullable
DuplexTransportConnection createKeyAgreementConnection(
byte[] remoteCommitment, BdfList descriptor);
byte[] remoteCommitment, BdfList descriptor, boolean alice);
/**
* Returns true if the plugin supports rendezvous connections.