Package-level declarations

Types

Link copied to clipboard
data class DIDCommServicePeerDID(val id: String, val type: String, val serviceEndpoint: ServiceEndpoint) : Service

Represents a DIDComm service peer DID.

Link copied to clipboard
data class DIDDocPeerDID @JvmOverloads constructor(val did: String, val authentication: List<VerificationMethodPeerDID>, val keyAgreement: List<VerificationMethodPeerDID> = emptyList(), val service: List<Service>? = null)

Represents a PeerDID DID Document.

Link copied to clipboard
typealias JSON = String

Type alias for JSON strings.

Link copied to clipboard

Raised if the resolved peer DID Doc to be resolved in not a valid peer DID.

Link copied to clipboard
class MalformedPeerDIDException @JvmOverloads constructor(message: String, cause: Throwable? = null) : PeerDIDException

Raised if the peer DID to be resolved in not a valid peer DID.

Link copied to clipboard
data class OtherService(val data: Map<String, Any>) : Service

Represents a service provided by a DID document.

Link copied to clipboard
typealias PeerDID = String

Defines the type PeerDID, which is an alias for a String.

Link copied to clipboard
open class PeerDIDException @JvmOverloads constructor(message: String, cause: Throwable? = null) : Throwable

The base class for all PeerDID errors and exceptions.

Link copied to clipboard

Represents the different types of public key fields.

Link copied to clipboard
interface Service

Represents a service.

Link copied to clipboard
data class ServiceEndpoint(val uri: String, val routingKeys: List<String>, val accept: List<String>)

Represents a service endpoint.

Link copied to clipboard

An enumeration that represents the format of verification material in a PeerDID.

Link copied to clipboard

Represents the verification material used in a PeerDID.

Link copied to clipboard

Represents a verification method used in PeerDID.

Link copied to clipboard

A sealed class representing the types of verification methods for agreements.

Link copied to clipboard

Represents the different types of authentication methods for verification.

Link copied to clipboard

Represents the types of verification methods for PeerDID.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val SERVICE_ID: String
Link copied to clipboard
Link copied to clipboard
const val SERVICE_TYPE: String
Link copied to clipboard
const val SERVICE_URI: String

Functions

Link copied to clipboard

Generates PeerDID according to the zero algorithm For this type of algorithm DIDDoc can be obtained from PeerDID

Link copied to clipboard

Generates PeerDID according to the second algorithm For this type of algorithm DIDDoc can be obtained from PeerDID

Link copied to clipboard
fun isPeerDID(peerDID: String): Boolean

Checks if peerDID param matches PeerDID spec

Link copied to clipboard
fun resolvePeerDID(peerDID: PeerDID, format: VerificationMaterialFormatPeerDID = VerificationMaterialFormatPeerDID.MULTIBASE): String

Resolves DIDDocPeerDID from PeerDID