Static
anchorGiven a StreamState returns the timestamp when it was last anchored, or null if the state hasn't been anchored yet.
Static
assertAsserts that the 'id' and 'prev' properties of the given commit properly link to the tip of the given stream state.
By the time the code gets into a StreamtypeHandler's applyCommit function the link to the state should already have been established by the stream loading and conflict resolution code, so if this check were to fail as part of a StreamtypeHandler's applyCommit function, that would indicate a programming error.
TODO: Use a process-fatal 'invariant' designed for checking against programming errors, once we have a more robust error handling framework in place.
Static
commitStatic
commitReturns a commitId given a StreamState
Static
convertConverts commit to SignedCommitContainer. The only difference is with signed commit for now
Commit value
IPFS instance
Static
deserializeStatic
deserializeDeserializes stream cloned from over the network transfer. Returns null if given null as a param.
Stream cloned
Static
getStatic
isChecks if commit is anchor commit
Commit
Static
isChecks if commit data is anchor commit
Commit data
Static
isChecks if commit is signed
Commit
Static
isChecks if commit is signed DTO ({jws: {}, linkedBlock: {}})
Commit
Static
isChecks if commit data is signed
Commit data
Static
isReturns true iff 'state' describes a state object containing all the same history as 'base', possibly with additional commits on top.
the state that might be a superset of 'base'
the baseline to be compared against
Static
serializeStatic
serializeSerializes stream state for over the network transfer
Stream state
Static
stateReturns whether the given StreamState contains the given commit CID in its log
Static
statesStatic
streamGets StreamID from the given StreamState object.
Static
tipStatic
validDIDString
Stream related utils