DIDPrism

fmgp.did.method.prism.DIDPrism
See theDIDPrism companion class
object DIDPrism

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
DIDPrism.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def applyUnsafe(did: String): DIDPrism
def fromDID(did: DID): Either[String, DIDPrism]
def fromEventHash(hash: Array[Byte]): DIDPrism
def fromSSI(ssi: SSI): DIDPrism
def fromString(string: String): Either[String, DIDPrism]
def regexPrism: Regex

Syntax

Syntax

 prism-did          = "did:prism:" initial-hash [encoded-state]
 initial-hash       = 64HEXDIGIT
 encoded-state      = ":" 1*id-char
 id-char            = ALPHA / DIGIT / "-" / "_"

Attributes

def regexPrismLongForm: Regex
def regexPrismShortForm: Regex

Concrete fields

val namespace: String

Givens

Givens

given decoder: JsonDecoder[DIDPrism]
given encoder: JsonEncoder[DIDPrism]