ProofGraphStoragePort
@totemsdk/proofgraph / ProofGraphStoragePort
Interface: ProofGraphStoragePort
Storage port — interface only, no concrete implementation in this package. Adapters (SQLite, LevelDB, in-memory) live in consumer packages.
Methods
findByNodeId()
findByNodeId(
id):Promise<ProofGraph|null>
Parameters
id
string
Returns
Promise<ProofGraph | null>
load()
load(
graphId):Promise<ProofGraph|null>
Parameters
graphId
string
Returns
Promise<ProofGraph | null>
save()
save(
graph):Promise<void>
Parameters
graph
Returns
Promise<void>