ERC-1261 · Stagnant · ERC · 2018-07-14
ERC-1261: Membership Verification Token (MVT)
A standard for non-transferable, revocable membership tokens that record whether an address belongs to an on-chain organisation and with which attributes, enabling one-member-one-vote governance and permissioned access.
What problem does it solve?
Most on-chain voting weighs votes by token balance, so whoever holds the most tokens decides. Many real organisations instead need a simple question answered: is this address a member? Examples from the spec include voting rights, investor whitelisting, licences and permits.
ERC-1261 defines a Membership Verification Token (MVT): a token the organisation assigns to an address, which the holder cannot transfer, and which the organisation can revoke. Any app can then check membership through one standard interface.
How it works
An MVT contract (the "entity") must implement ERC-1261, ERC-173 ownership and ERC-165 interface detection. Its ERC-165 interface ID is 0x1d8362cf.
Membership lifecycle
assignTo(to, attributeIndexes): the owner grants membership directly.requestMembership(attributeIndexes): a user asks to join; the owner then callsapproveRequestordiscardRequest.revokeFrom(from): the owner removes a member.forfeitMembership(): a member leaves voluntarily.isCurrentMember(addr)andgetCurrentMemberCount()answer the basic queries;getAllMembers()lists past and present members.
Attributes
Each entity defines attribute sets, such as a "region" header with a fixed list of values. Each member holds exactly one value per attribute, stored as an index. The spec asks for value lists that are exclusive and exhaustive, so they split members into clean subgroups. Polls can then target, for example, "members whose region is X". Owners manage attributes with addAttributeSet and modifyAttributeByIndex.
Events (Assigned, Revoked, Forfeited, RequestedMembership, ApprovedMembership, ModifiedAttributes) let indexers track membership changes. An optional metadata extension adds name() and symbol().
Sample code
Gating a function on membership in an MVT entity:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IERC1261Lite {
function isCurrentMember(address who) external view returns (bool);
function getCurrentMemberCount() external view returns (uint256);
}
contract MemberPoll {
IERC1261Lite public immutable entity;
mapping(address => bool) public voted;
uint256 public yes;
constructor(IERC1261Lite _entity) { entity = _entity; }
function voteYes() external {
require(entity.isCurrentMember(msg.sender), "not a member");
require(!voted[msg.sender], "already voted");
voted[msg.sender] = true;
yes++;
}
// share of current members that voted yes, in basis points
function yesBps() external view returns (uint256) {
return yes * 10_000 / entity.getCurrentMemberCount();
}
}
Things to know
- Status is Stagnant. The interface in the spec uses old Solidity syntax and will need adjusting to compile with modern compilers.
- The design trades trustlessness for usability: the entity owner can add or revoke members at will. The spec openly acknowledges this and the risk of a captured owner.
- Membership is checked live, so a member revoked mid-poll fails later checks. Snapshot membership yourself if a vote needs a fixed electorate.
- Later standards for non-transferable tokens include ERC-5192 (minimal soulbound NFTs) and ERC-4973 (account-bound tokens).