ERC-8498 SBT namespace state transitions (Namespaced State Transitions for SBTs)
Draft · NFTs & multi-token · created 2026-11-13
A common interface for Soulbound Tokens (SBTs) that holds several independently managed regions (namespaces), verifying and recording that each region's state changed according to a defined policy and evidence.
Why it is needed
Credentials, affiliations, contributions, and experience keep changing over time. Holders participate in governance, trade assets, contribute to communities, or receive off-chain certification. Existing SBT standards support non-transferability (locking) or attribute changes on their own, but there was no common way to determine what changed, under what rules it changed, whether the prior state was correctly carried forward, or whether this state can actually be relied on now. As a result, interpretation varied across apps, and it was easy to confuse accumulated historical records with current validity. For example, when a credential expires the past record should remain, a correction should preserve the original claim, and suspending one region should not affect an unrelated region, but no standard explicitly enforced these distinctions.
What to implement
function stateOf(uint256 tokenId, bytes32 namespace) external view returns (StateHead memory);: Returns the most recently accepted state (revision, stateRoot, policyId, status, validUntil) for a given namespace of a given token.function policyOf(bytes32 namespace, bytes32 policyId) external view returns (PolicyDefinition memory definition, PolicyStatus memory status);: Returns the immutable definition registered for a namespace's policy along with its current live controls (epoch, updatesEnabled, usesEnabled).
In depth
Namespace and StateHead
A namespace is a nonzero bytes32 value registered within a contract, and the unit identifying state is the tuple (chainId, credentialContract, tokenId, namespace). The same namespace value does not carry the same meaning across different contracts. Each namespace's StateHead consists of five fields: revision, stateRoot, policyId, status (Uninitialized/Active/Suspended/Revoked), and validUntil. Before initialization all fields are 0 or Uninitialized, and after initialization revision cannot move backward or return to Uninitialized. The actual content of stateRoot is not defined by this interface and is instead defined by the policy (profile).
Policy and live controls
policyOf returns both the immutable PolicyDefinition (schemaId, rulesHash, verifier, verifierConfigHash, authorizationHash, specificationURI) and the mutable PolicyStatus (epoch, updatesEnabled, usesEnabled). A policy definition does not change after registration, and a different definition must use a different policyId. epoch starts at 1 and increments by exactly 1 whenever either updatesEnabled or usesEnabled changes, never moving backward. updatesEnabled independently controls whether new transitions can be submitted, while usesEnabled independently controls whether the current credential can be recognized as valid.
Canonical encoding and transition identifiers
All hashes use Keccak-256, and unless stated otherwise, Solidity abi.encode is used. The canonical hash of StateHead is keccak256(abi.encode(h)), and the hash of the head before initialization is not bytes32(0) but the hash of 160 bytes of zeros (0xdfded4...). policyId is the hash of the abi.encode of the namespace and the definition fields, and for every transition operationsCommitment == keccak256(evidence) must match exactly. The unique identifier of a transition (transitionId) is computed as an EIP-712 digest, with the domain fixed as name:EvolvingSBT, version:1, chainId, verifyingContract. authorization is excluded from this digest computation.
Acceptance conditions for applyTransition
For a transition to be accepted, all of the following must hold: the token and namespace must exist; expectedRevision and expectedStateHash must match the current head; deadline must be nonzero and no later than the current time; operationsCommitment must match the submitted evidence; the target policy's epoch must equal targetPolicyEpoch and updatesEnabled must be true; before initialization sourcePolicyEpoch must be 0, and otherwise it must satisfy the current policy's epoch and updatesEnabled conditions; the transition must be allowed by the lifecycle table; the evidence and authorization must satisfy the policy's requirements; and the next revision must not exceed the uint64 range. If any one of these fails, the entire transition is reverted, with no partial application.
State lifecycle
From Uninitialized, the only possible transition is to Active; from Active, transitions to Active (renewal), Suspended, or Revoked are possible; from Suspended, transitions to Suspended, Active (resumption), or Revoked are possible. Revoked is a terminal state for the given token and namespace, and every subsequent transition is rejected. Initialization requires the holder's separate consent in addition to the authorization the policy demands, and merely owning the token does not automatically grant issuer or controller authority. Even if corrections are allowed while suspended, that alone does not imply authority to resume the namespace.
Optional policy migration
An implementation may reject every policyId change on an initialized head outright. To support migration, both the source and target policies must explicitly permit it, the migration authorization and state transition rules of both policies must be satisfied, the migration must be bound to the current epoch on both sides, and revision continuity must be maintained. It cannot bypass suspension authority, a finalized revocation, or the history preservation guarantees of the source profile.
Growth profiles and capacity exhaustion
The accumulation of transitions by itself does not guarantee an append-only history, the truth of external facts, or the absence of duplicate experiences. A profile that claims to be append-only must define a commitment relationship that preserves previously accepted entries, and corrections or revocations must be expressed in a way that does not silently erase existing entries. A capacity-limited profile must specify how additions, corrections, and invalidation behave once capacity is exhausted, and capacity exhaustion must not by itself block every protective path (invalidating an individual claim, suspending or revoking the namespace, or discontinuing use of the policy). The reference implementation's signature-based growth profile holds up to 32 records per token and namespace; once 32 is reached, both additions and corrections fail, and afterward only suspension, revocation, or discontinuing use of the policy remain possible.
A proposal still at the Draft stage
This proposal is in Draft status, created on November 13, 2026, and is still undergoing community discussion and revision. Details such as interface selectors, EIP-712 typehashes, and acceptance conditions may change or be discontinued before final confirmation.
Things to watch out for
- Trust in evidence and authority: A transition being accepted only means the policy was satisfied, not that the external fact is unconditionally true. A signature-based policy requires trusting the recognized authority, while a chain-proof-based policy requires trusting the verifier and the source chain's authentication and finality assumptions. Non-transferability also does not guarantee one-person-one-credential, nor does it prevent key sharing or account sale.
- Policy changes and mutable dependencies: Even if the policy fields are immutable, the external contract referenced by verifier or authorizationHash can have its actual trust basis changed through a proxy upgrade or key rotation. Turning off updatesEnabled also blocks correction transitions until it is resumed, so a separate means of blocking current usage via usesEnabled is needed.
- Replay and concurrent updates: The transition identifier binds together the chain, contract, token, namespace, predecessor, epoch, next state, evidence, and deadline, so the same predecessor cannot be reused. However, external verification calls or callbacks to contract accounts can create reentrancy risk, so protection is needed to ensure that verification is not invalidated after a callback.
- Current validity and stale proofs: A past inclusion proof does not guarantee current eligibility. Expiration, corrections, namespace revocation, the policy's usesEnabled, an independent revocation registry, and application-specific facts can each change the outcome, so accepting a stale root or cached policy state without clear freshness rules can make an already-ended eligibility appear to still hold.
- Availability and resource limits: The existence of a state commitment does not guarantee that its evidence or referenced specification remains accessible. If a user loses the data they were keeping, future proof may become impossible even though the head is still valid, and a profile with unbounded verification or history reconstruction may become practically impossible to update over time.