Mutable store for persisting and retrieving blocks, extending BlockQuery with write operations.
Type parameters
- Event
-
event type
- F
-
effect type
- ResultRef
-
result reference type
- TxRef
-
transaction reference type
Attributes
- Companion
- object
- Source
- Store.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Stores a block body, optionally validating against an existing header.
Stores a block body, optionally validating against an existing header.
Split storage is allowed to receive a body before its header is available. When the header is already present, the write path rejects a mismatched bodyRoot immediately; otherwise getView remains the hydration-time integrity gate once both halves exist.
Value parameters
- blockId
-
the block identifier to associate the body with
- body
-
the block body to persist
Attributes
- Returns
-
Right(())on success, orLeft(failure)on validation error - Source
- Store.scala
Stores a block header and returns its computed BlockId.
Stores a block header and returns its computed BlockId.
Value parameters
- header
-
the block header to persist
Attributes
- Returns
-
Right(blockId)after versioned-commitment validation, orLeft(failure)without mutating the store - Source
- Store.scala
Validates and stores a complete block view (header + body) atomically.
Validates and stores a complete block view (header + body) atomically.
Value parameters
- view
-
the block view to persist
Attributes
- Returns
-
Right(blockId)on success, orLeft(failure)on validation error - Source
- Store.scala
Inherited and Abstract methods
Retrieves a block body by the block identifier.
Retrieves a block body by the block identifier.
Value parameters
- blockId
-
the block identifier to look up
Attributes
- Returns
-
Some(body)if found,Noneotherwise - Inherited from:
- BlockQuery
- Source
- Store.scala
Retrieves a block header by its identifier.
Retrieves a block header by its identifier.
Value parameters
- blockId
-
the block identifier to look up
Attributes
- Returns
-
Some(header)if found,Noneotherwise - Inherited from:
- BlockQuery
- Source
- Store.scala
Retrieves and validates a combined block view (header + body).
Retrieves and validates a combined block view (header + body).
Value parameters
- blockId
-
the block identifier to look up
Attributes
- Returns
-
Right(Some(view))if both parts exist and are valid,Right(None)if either part is missing, orLeft(failure)if validation fails - Inherited from:
- BlockQuery
- Source
- Store.scala