What is protocol?

The set of rules that governs how a blockchain, or an application built on one, operates.

Not yet verifiedHow we verify

3 min read

In this entry

The set of rules that governs how a blockchain, or an application built on one, operates.

Used loosely, the word also names a specific DeFi application such as a lending market or an automated exchange. Protocol rules are enforced by code and by the nodes running it rather than by a company.

The word carries two meanings that get mixed up constantly, and the difference matters when you are assessing risk. A base-layer protocol is the rule set that defines a network: what a valid block is, how supply is issued, how consensus works. An application protocol is a set of smart contracts deployed on top of one, run by a team, often upgradeable, and usually with a token attached.

How it works

At the base layer, the protocol is whatever the network's software enforces. There is no authority that can override it. Changing the rules means persuading node operators to run different software, which is what a fork is: a soft fork tightens rules so old nodes still accept new blocks, and a hard fork loosens or changes them so they do not. See client diversity for why more than one implementation matters.

At the application layer, "protocol" describes contracts anyone can call. Their rules hold only as far as the code holds, which introduces failure modes the base layer does not have:

  1. The contracts may be upgradeable, so today's rules are not necessarily tomorrow's. See proxy contract and upgradeable contract.
  2. An admin key or a governance token vote may change parameters such as fees, collateral factors, or which assets are accepted.
  3. Bugs are the operating risk. An audit describes code at a moment, not a guarantee. See smart contract audit.

Base-layer rules are hard to change and slow. Application rules can change in a single transaction.

Example

Compare the two. Bitcoin's issuance schedule is a base-layer rule: the block subsidy halves on a fixed schedule, and no company or foundation can alter it without the network agreeing to run new software. That is why the bitcoin halving is predictable years in advance.

Now take a lending application. Its interest rate curve, the assets it accepts, and its liquidation thresholds are parameters that a governance vote or an admin key can change, sometimes within a day. Depositing there means accepting the current rules plus whatever the governance process may decide next. Both are called protocols; only one of them is fixed.

Why it matters when you buy

Knowing which kind you are dealing with tells you what to check. For a base-layer network the questions are throughput, fees, and how decentralized the validator set is, which is what the chain pages measure. For an application the questions are who can change the rules and how the yield is produced, which stablecoin yield risks and verifying a token contract cover.

smart contract — the code an application protocol is made of; node — what enforces the base-layer rules; fork — how base rules change; governance token — voting on parameters; upgradeable contract — logic that can be replaced; defi — the application layer as a whole.

Questions

Is a protocol the same as a company?

At the base layer, no: the rules are enforced by independent node operators. At the application layer it often effectively is, because a team deploys the contracts, holds the upgrade keys, and can change parameters.

Who can change a protocol's rules?

For a network, only the operators who choose which software to run, which is why forks are slow and contentious. For an application, whoever controls the upgrade key or the governance process, which can be fast.

Does "decentralized protocol" mean nobody is in charge?

Not by itself. Check whether an admin key exists, whether contracts are upgradeable, and how concentrated governance token holdings are. Those three answers describe the real control structure better than the label does.