StatePin class

The prior state the effects were computed against. A human in the loop makes the approval window minutes wide, so the state can move underneath a pending approval. The executor asserts this pin still holds at execution and refuses otherwise — without it, a lost update silently executes against state the approver never saw.

Constructors

StatePin({required String resource, required String version})
const
StatePin.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
resource → String
Identifier of the pinned resource (usually the subject DID).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → String
Opaque version identifier of the prior state (e.g. a did:webvh versionId). Compared for equality at execution; the executor MUST NOT attempt to order or interpret it.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited