aries / net.globalid.aries.utils / RxDid

RxDid

object RxDid

Types

DidEndpointAndRecipientKeys

The did information

data class DidEndpointAndRecipientKeys

DidResult

Represents the create and store my did result from Did.createAndStoreMyDid.

data class DidResult

MyDidInformation

Represents the identity information JSON from Did.createAndStoreMyDid.

data class MyDidInformation

TheirDidInformation

Represents the identity information JSON from Did.storeTheirDid. Note that the verification key is optional in the JSON, but considering their documentation "optional in case of adding a new DID, and DID is cryptonym: did == verkey", just make it explicit that did = verkey, as it is already mandatory when updating an existing DID.

data class TheirDidInformation

Functions

createAndStoreMyDid

An Rx wrapper for Did.createAndStoreMyDid.

fun createAndStoreMyDid(wallet: Wallet, myDidInformation: MyDidInformation? = null): Single<DidResult>

createAndStoreMyPeerDid

An utility for creating a peer Did. These are useful for P2P communications, because they are not written to a ledger but are used in the specific connection only.

fun createAndStoreMyPeerDid(wallet: Wallet, myDidInformation: MyDidInformation? = null): Single<DidResult>

createAndStoreMySovDid

An utility for creating a sov DID. AcaPy expects a "did:sov" DID.

fun createAndStoreMySovDid(wallet: Wallet, myDidInformation: MyDidInformation? = null): Single<DidResult>

getEndpointForDid

Returns service endpoint and verification key

fun getEndpointForDid(wallet: Wallet, pool: Pool, did: String): Single<DidEndpointAndRecipientKeys>

storeTheirDid

An Rx wrapper for Did.storeTheirDid.

fun storeTheirDid(wallet: Wallet, theirDidInformation: TheirDidInformation): Completable