PrismStateRead
Read-only interface for querying PRISM blockchain state.
This trait provides methods to query the state of PRISM DIDs (Decentralized Identifiers) and VDRs (Verifiable Data Registries) from an event-sourced storage backend. Events represent blockchain operations (create, update, deactivate) that form immutable chains tracked through hash references.
==Key Concepts==
'''SSI (Self-Sovereign Identity):''' A PRISM DID (e.g., did:prism:xxx) managed through fmgp.did.method.prism.proto.CreateDidOP, fmgp.did.method.prism.proto.UpdateDidOP, and fmgp.did.method.prism.proto.DeactivateDidOP events. SSIs represent identity with keys and services.
'''VDR (Verifiable Data Registry):''' Storage entries owned by a DID, managed through fmgp.did.method.prism.proto.CreateStorageEntryOP, fmgp.did.method.prism.proto.UpdateStorageEntryOP, and fmgp.did.method.prism.proto.DeactivateStorageEntryOP events. Used for storing arbitrary data on-chain.
'''Event Chains:''' Operations form chains via previousEventHash references. Create operations start chains; update/deactivate operations reference previous events. All events in a chain share the same root hash.
Attributes
- Example
-
val state: PrismStateRead = ??? for { events <- state.getEventsForSSI(didSubject) ssi <- state.getSSI(didSubject) history <- state.getSSIHistory(didSubject) } yield (events, ssi, history) - Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait PrismStateclass PrismStateInMemoryclass PrismStateMongoDBclass PrismStateFSclass PrismStateHTTP