open fun createInvitation(agent: Agent, recordId: String?): Single<Pair<SentInvitation, ConnectionInvitationMessage>>
See ConnectionService.createInvitation.
The invitation is stored in the wallet with a tag ConnectionRecord.TAG_CONNECTION_KEY, which is a generated key, used for later finding the corresponding record.