PrismStateReadMongoDB
PrismStateReadMongoDB is like PrismStateMongoDB but only the read part
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PrismStateReadclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Returns the cursor of the latest event stored in the database.
Returns the cursor of the latest event stored in the database.
Uses MongoDB sort to efficiently find the maximum EventCursor by (b, o) indices. If no events exist, returns EventCursor.init (-1, -1).
Attributes
- Definition Classes
-
PrismStateReadMongoDBTrait -> PrismStateRead
Inherited methods
Returns the main events MongoDB collection.
Returns the main events MongoDB collection.
Attributes
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Name of the main events collection.
Name of the main events collection.
Attributes
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Gets a specific event by its EventHash.
Gets a specific event by its EventHash.
Attributes
- Definition Classes
-
PrismStateReadMongoDBTrait -> PrismStateRead
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Fetches all events in the chain for the given DID.
Fetches all events in the chain for the given DID.
Attributes
- Returns
-
ZIO effect that may fail with
Throwable(RuntimeException if event hash missing or type validation fails) and succeeds with sequence of DID-related MySignedPrismEvent - Definition Classes
-
PrismStateReadMongoDBTrait -> PrismStateRead
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Fetches all events in the chain for the given VDR reference.
Fetches all events in the chain for the given VDR reference.
Value parameters
- refVDR
-
The VDR reference to query
Attributes
- Returns
-
ZIO effect that may fail with
Throwable(RuntimeException if event hash missing or type validation fails) and succeeds with sequence of storage-related MySignedPrismEvent - Definition Classes
-
PrismStateReadMongoDBTrait -> PrismStateRead
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Returns event references for a specific SSI DID.
Returns event references for a specific SSI DID.
Attributes
- Definition Classes
-
PrismStateReadMongoDBTrait -> PrismStateRead
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Returns event references for a specific VDR.
Returns event references for a specific VDR.
Attributes
- Definition Classes
-
PrismStateReadMongoDBTrait -> PrismStateRead
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Gets the current SSI state.
Gets the full SSIHistory for a SSI.
Gets the VDR state with full ownership validation.
Returns the last synced block timestamp.
Returns the last synced block timestamp.
Attributes
- Returns
-
Tuple of (epoch seconds, nanoseconds)
- Note
-
Current implementation returns current time (FIXME: should track actual sync state)
- Inherited from:
- PrismStateRead
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Returns mapping of all SSI DIDs to their event references.
Returns mapping of all SSI DIDs to their event references.
Attributes
- Note
-
TODO: make it a Stream of (DIDSubject, Seq[EventRef])
- Definition Classes
-
PrismStateReadMongoDBTrait -> PrismStateRead
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Returns count of SSI DIDs in the state.
Returns count of SSI DIDs in the state.
Attributes
- Note
-
TODO: improve in specific implementations for better performance
- Inherited from:
- PrismStateRead
Returns mapping of all VDRs to their event references.
Returns mapping of all VDRs to their event references.
Attributes
- Note
-
TODO: make it a Stream of (RefVDR, Seq[EventRef])
- Definition Classes
-
PrismStateReadMongoDBTrait -> PrismStateRead
- Inherited from:
- PrismStateReadMongoDBTrait (hidden)
Returns count of VDRs in the state.
Returns count of VDRs in the state.
Attributes
- Note
-
TODO: improve in specific implementations for better performance
- Inherited from:
- PrismStateRead