BackupV0_0_1

class BackupV0_0_1 constructor(val version: String = "0.0.1", val credentials: List<BackupV0_0_1.Credential>, val dids: List<BackupV0_0_1.DID>, val didPairs: List<BackupV0_0_1.DIDPair>, val keys: List<BackupV0_0_1.Key>, val messages: List<String>, val linkSecret: String?, val mediators: List<BackupV0_0_1.Mediator>)(source)

Represents a backup object with version, credentials, DIDs, DID pairs, keys, messages, link secret, and mediators.

Constructors

Link copied to clipboard
constructor(version: String = "0.0.1", credentials: List<BackupV0_0_1.Credential>, dids: List<BackupV0_0_1.DID>, didPairs: List<BackupV0_0_1.DIDPair>, keys: List<BackupV0_0_1.Key>, messages: List<String>, linkSecret: String?, mediators: List<BackupV0_0_1.Mediator>)

Types

Link copied to clipboard
data class Credential(val recoveryId: String, val data: String)

The Credential class represents a serialized credential object.

Link copied to clipboard
data class DID(val did: String, val alias: String? = null)

Represents a Decentralized Identifier (DID) entity.

Link copied to clipboard
data class DIDPair(val holder: String, val recipient: String, val alias: String)

Represents a pair of DID (Decentralized Identifier) with additional metadata.

Link copied to clipboard
data class Key(val key: String, val did: String? = null, val index: Int? = null, val recoveryId: String? = null)

This class represents a Key object. It contains the following properties:

Link copied to clipboard
data class Mediator(val mediatorDid: String, val holderDid: String, val routingDid: String)

The Mediator class represents a mediator entity used in a system.

Properties

Link copied to clipboard

The list of credentials.

Link copied to clipboard
@SerialName(value = "did_pairs")
val didPairs: List<BackupV0_0_1.DIDPair>

The list of DID pairs.

Link copied to clipboard

The list of DIDs.

Link copied to clipboard

The list of keys.

Link copied to clipboard
@SerialName(value = "link_secret")
val linkSecret: String?

The link secret.

Link copied to clipboard

The list of mediators.

Link copied to clipboard

The list of messages.

Link copied to clipboard

The version of the backup.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Returns true if the specified object is equal to this BackupV0_0_1 object.

Link copied to clipboard
open override fun hashCode(): Int

Returns the hash code value for this object.