Identity

# Identity

data class Identity(val id: UUID, val pinLength: Int, val mpinId: ByteArray, val token: ByteArray, val dtas: String, val publicKey: ByteArray?)

Identity is a MIRACL Trust data class to represent an identity.

# Parameters

id Identifier of the identity.
pinLength The number of the digits the identity PIN should be.
mpinId representing the identity to the MIRACL Trust Platform.
token representing the identity securely.
dtas required for server side validation.
publicKey Public part of the signing key.

# Constructors

Identity
constructor(pinLength: Int, mpinId: ByteArray, token: ByteArray, dtas: String, publicKey: ByteArray?)constructor(id: UUID, pinLength: Int, mpinId: ByteArray, token: ByteArray, dtas: String, publicKey: ByteArray?)

# Types

Name Summary
Companion
object Companion

# Properties

Name Summary
dtas
val dtas: String
hashedMpinId
val hashedMpinId: String
Hex encoded SHA256 representation of the mpinId property.
id
val id: UUID
mpinId
val mpinId: ByteArray
pinLength
val pinLength: Int
publicKey
val publicKey: ByteArray?
token
val token: ByteArray

# Functions

Name Summary
equals
open operator override fun equals(other: Any?): Boolean
hashCode
open override fun hashCode(): Int