{
  "id": "2025/592",
  "url": "https://opencryptology.org/2025/592",
  "original_url": "https://eprint.iacr.org/2025/592",
  "title": "Deterministic State Machines as Guarded Linear Constraint Systems: Double-spend prevention as a state property",
  "authors": [
    "Brandon Ramsay"
  ],
  "affiliations": null,
  "abstract": "This paper formalizes the Deterministic State Machine, or DSM, as a guarded, linear, for-\nward only, constraint based computation model. DSM does not require a blockchain, validator\nset, sequencer, gas market, mempool, clock based ordering rule, or global consensus layer for\nordinary state evolution. State validity is determined by local verification of cryptographically\nprecommitted candidate futures, deterministic fulfillment guards, explicit resource consumption\nkeys, canonical encodings, signatures, and Sparse Merkle Tree commitments.\nThe architectural shift is that finality moves from a network decision to a state property.\nInstead of requiring some external party, committee, sequencer, validator set, or global clock\nto agree that a transition happened, DSM asks whether the proposed transition consumes the\ncommitted state resource and advances it deterministically. If it does, the successor is locally\nrealized. If it does not, it is not state. Finality is therefore not provided as a service by an\nordering network; it is a consequence of the consumed resource itself. This is global realization\nwithout global ordering: local acceptance composes into a coherent realized history because\nincompatible histories cannot merge.\nThe central claim is not that DSM forbids all branching at the level of precommitment. DSM\nexplicitly permits precommitment forking. Multiple candidate futures may be prepared for a\ncommon parent, including Deterministic Limbo Vault release paths, refund paths, hash fulfill-\nment paths, recovery paths, abort paths, contingent payment paths, CPTA token operations,\noffline bearer steps, and other mutually exclusive branches. The invariant is:\nmultiple futures may be described, but for a fixed consumed resource, at most one may be\nrealized.\nA resource is the thing that produces exactly one realized successor. A relationship parent,\nspendable object, vault generation, token balance object, source vault generation, recovery\ngeneration, or offline anchor step is a resource in this sense. Candidate branches are only\npossible futures. Realization consumes the resource.\nA generation is a logical version of a resource family. It is not a time period, not a clock\ninterval, not a scheduling unit, and not an external ordering coordinate. Generations are ordered\nonly by DSM derivability and resource consumption.\nThis paper makes explicit the machinery required for that statement. Guard exclusivity is not\nleft as convention. A DSM precommit set is valid only if its guard family is well formed. A well\nformed guard family gives either a deterministic branch selector, a mechanically proven exclusive\nguard class, or a set of branch predicates that are structurally tied to the same consumed\nresource. Parent consumption is modeled through canonical resource consumption keys and a\nconsumed parent set committed by the DSM root. Branch local keys may exist for indexing or\naudit, but the shared resource key is what enforces linear exclusion.\nA hardened form of the model is also stated: for any conflict class, all conflicting candidates\nmust derive the same canonical consumption key for every resource they share, and those keys\nmust be derived from the committed parent state rather than supplied as discretionary branch\ndata. A branch may additionally consume resources disjoint from the conflict without weakening\nexclusion. This removes the implementation hazard where release, refund, recovery, or policy\nbranches accidentally consume different keys for a shared resource, while still admitting branches\nsuch as contingent alternative payees that consume an extra disjoint resource.\nThe role of guard exclusivity is clarified. Pairwise guard exclusivity is useful and required\nfor guard classes that claim exclusive fulfillment, but it is not the only safety mechanism. When\nconflicting branches share the same derived resource consumption key, linearity alone prevents\nco realization even if several guards are simultaneously fulfilled. Thus the load bearing safety\nrule is not merely that guards should not overlap. The load bearing safety rule is that conflicting\nfutures must fight over the same derived resource.\nTripwire is formalized as the theorem that two conflicting realized successors from the same\nconsumed resource cannot both be derivable. More precisely, conflicting candidates may be\nconstructed or transmitted as bytes, but they cannot both validate under the DSM step predicate\nand cannot both go through as accepted state transitions for the same consumed resource. Forks\nare therefore not selected against by consensus. They are excluded by guarded realization and\nexposed by reconciliation if conflicting invalid bytes are presented outside the valid model.\nOffline bearer mode is treated as an optional mode predicate, and this revision states its\ncorrected form. Transfer uniqueness, including offline transfer uniqueness, is a software theorem\nof the guarded linear kernel. An SMT committed anchor counter makes the offline origin an\nexplicit coordinate of the committed state, every offline candidate from that origin consumes\nthe same derived anchor step resource key, and realized history uniqueness applies without a\nhardware term. Hardware is thereby demoted to the one job software cannot perform: unique-\nness of the physical device instance. Every offline release carries a three factor identity witness,\na seed rooted DSM signature, a PUF rooted non exportable chip signature, and a measurement\ngated partition sealed host signature over the same root advance message, and the physical\nmonotonic counter survives only as a tracker of the SMT counter: a non rewind floor, a stale\nimage tripwire, and an offline exposure cap. The receiver witnessed counter positioned commit\nof earlier drafts is superseded: a scalar counter read never binds the transition it brackets, and\nthe binding was never needed.\nThe safety theorems of this paper are supported by machine checked artifacts. The general\nkey scoped fork exclusion theorems are proved in Lean 4 over an abstract guarded model, with\nthe uniqueness and Tripwire core depending on no axioms. A companion TLA+ development\nmodel checks the same statements in both a per state form and a realized history form on\nconcrete guard families, and by deliberate falsification of a malformed family confirms that\nguard family well formedness is load bearing. A relationship scoped model checks that same\nparent multi receiver forks are unconstructible in online DSM. Appendices A and B point to\nthese artifacts. Their exact scope and boundary are stated in the Claim Boundary section",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Deterministic State Machines as Guarded Linear Constraint Systems: Double-spend prevention as a state property” by Brandon Ramsay, Cryptology ePrint Archive, Paper 2025/592, https://eprint.iacr.org/2025/592. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2025-04-01T18:03:39Z",
    "updated": "2026-11-26T06:58:57Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/592.pdf",
    "sha256": "c9fbc21c6914bae86b5a43b6d48a3f756d1ab206a69887bae1e62a6e4118af95",
    "size": 454707,
    "source": "upload",
    "source_date": "2026-11-14T03:55:02.181Z",
    "maybe_stale": true,
    "newer_on_eprint": true,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2025/592/versions/20261114T035502Z.pdf",
      "captured_at": "2026-11-14T03:55:02.181Z",
      "label": "copy captured 2026-11-14",
      "source": "upload",
      "source_url": null,
      "size": 454707,
      "sha256": "c9fbc21c6914bae86b5a43b6d48a3f756d1ab206a69887bae1e62a6e4118af95",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2025/592/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/592.pdf",
      "size": 2183780,
      "sha256": "719855b70d9da98caa6e54c91952842c066ab7b7e60be6cb4a13c9c9864a3d11",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/592.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 2183780
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251118053428id_/https://eprint.iacr.org/2025/592.pdf",
      "captured_at": "2025-11-18T05:34:28Z",
      "size": 2131000
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/592,\n      author = {Brandon Ramsay},\n      title = {Deterministic State Machines as Guarded Linear Constraint Systems: Double-spend prevention as a state property},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/592},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/592}\n}"
}
