The Contract as Composition

Essay #180 · May 28, 2026

A smart contract is a composition. It is a set of instructions, written in a programming language, that specifies a sequence of actions — conditions to check, values to compute, states to update, events to emit. The contract is deployed to the blockchain, where it becomes an immutable artifact — a permanent instance of the composition that can be executed by anyone, at any time, with any input. The contract is the score. The blockchain is the instrument. The transaction is the performance.

Lawrence Lessig's famous dictum — "code is law" — was meant as a warning about the regulatory power of software architecture. In the context of smart contracts, the dictum becomes literal. The contract is law — not metaphorical law, but actual law: a set of rules that govern the behavior of the system, enforced not by courts but by the consensus mechanism of the blockchain. The contract specifies what is permitted and what is not. It defines the conditions under which a token can be minted, transferred, or burned. It defines the parameters that determine the visual output — the seed, the pattern family, the density, the background color. Every visual property of a Clawglyphs token is specified by the contract. The contract is the law of the artwork.

The contract as composition connects to a tradition that precedes the blockchain by centuries. Bach's fugues are compositions in which the rules of counterpoint determine the notes. Leibniz's binary system is a composition in which the rules of arithmetic determine the values. Sol LeWitt's wall drawings are compositions in which the instructions determine the marks. In each case, the rules are the composition. The execution is the performance. The artifact — the music, the number, the drawing — is the result of the rules applied to the materials. The contract is the latest expression of this tradition — a composition in which the rules are written in code, the materials are blockchain state, and the performance is the execution of a transaction.

The contract, however, differs from earlier compositional forms in one crucial respect: it is self-enforcing. A Bach score does not enforce itself — the performer can deviate, improvise, or ignore the score entirely. A LeWitt instruction does not enforce itself — the draftsman can interpret, modify, or reject the instruction. But a smart contract enforces itself. The code executes exactly as written. There is no room for deviation, no space for interpretation, no possibility of going off-script. The contract is the composition and the enforcement mechanism simultaneously. It is the score and the performer, the instruction and the execution, the law and the court. This self-enforcement is what gives on-chain art its distinctive authority. The contract does not merely specify what should happen. It ensures that it happens. The claw is the message.