Identity

data class Identity(val extraKeys: ImmutableMap<String, ByteArray>, val publicKey: ByteArray = extraKeys[PROTOBUF_PRIVKEY_KEY]!!, val name: String, val sig: ByteArray, val fingerprint: UUID, val isOwned: Boolean) : Parcelable

A handle to a cryptographic identity stored in the Scatterbrain router. This class contains all identity metadata except for the private key (for security reasons). This class has no public constructor and is only returned by Scatterbrain api functions

Constructors

Link copied to clipboard
constructor(inParcel: Parcel)
constructor(extraKeys: ImmutableMap<String, ByteArray>, publicKey: ByteArray = extraKeys[PROTOBUF_PRIVKEY_KEY]!!, name: String, sig: ByteArray, fingerprint: UUID, isOwned: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val extraKeys: ImmutableMap<String, ByteArray>

additional user defined keys or metadata

Link copied to clipboard

unique identifier for this identity

Link copied to clipboard

true if this identity has a private key

Link copied to clipboard

user-defined name

Link copied to clipboard

ed25519 public key used by Scatterbrain

Link copied to clipboard

ed25519 signature for this identity

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, i: Int)