{"eip":1261,"title":"Membership Verification Token (MVT)","description":"A standard interface for Membership Verification Token(MVT).","authors":["Chaitanya Potti (@chaitanyapotti)","Partha Bhattacharya (@pb25193)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2018-07-14","requires":[165,173],"discussionsTo":"https://github.com/ethereum/EIPs/issues/1261","repo":"ERCs","label":"ERC-1261","officialUrl":"https://eips.ethereum.org/EIPS/eip-1261","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-1261.md","url":"https://eips.huatuo.xyz/eip-1261/","tldr":{"en":"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.","ja":"アドレスがオンチェーン組織に属しているかどうか、どの属性を持つかを記録する、譲渡不可で取り消し可能なメンバーシップトークンの標準。1 人 1 票のガバナンスや許可制アクセスを可能にする。","ko":"주소가 온체인 조직에 속하는지, 어떤 속성을 가졌는지 기록하는 양도 불가능하고 철회 가능한 멤버십 토큰 표준. 1인 1표 거버넌스와 허가형 접근을 가능하게 한다.","zh":"一种不可转让、可撤销的会员代币标准，记录某个地址是否属于某个链上组织以及具有哪些属性，可实现一人一票的治理和许可式访问。"},"tags":["membership","identity","governance","non-transferable","erc"],"explainers":{"en":{"lang":"en","tldr":"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.","tags":["membership","identity","governance","non-transferable","erc"],"related":[165,173,721,5192,4973],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-1261/","markdown":"## What problem does it solve?\n\nMost 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.\n\nERC-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.\n\n## How it works\n\nAn MVT contract (the \"entity\") must implement ERC-1261, [ERC-173](/eip-173/) ownership and [ERC-165](/eip-165/) interface detection. Its ERC-165 interface ID is `0x1d8362cf`.\n\n**Membership lifecycle**\n\n- `assignTo(to, attributeIndexes)`: the owner grants membership directly.\n- `requestMembership(attributeIndexes)`: a user asks to join; the owner then calls `approveRequest` or `discardRequest`.\n- `revokeFrom(from)`: the owner removes a member.\n- `forfeitMembership()`: a member leaves voluntarily.\n- `isCurrentMember(addr)` and `getCurrentMemberCount()` answer the basic queries; `getAllMembers()` lists past and present members.\n\n**Attributes**\n\nEach 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`.\n\nEvents (`Assigned`, `Revoked`, `Forfeited`, `RequestedMembership`, `ApprovedMembership`, `ModifiedAttributes`) let indexers track membership changes. An optional metadata extension adds `name()` and `symbol()`.\n\n## Sample code\n\nGating a function on membership in an MVT entity:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC1261Lite {\n    function isCurrentMember(address who) external view returns (bool);\n    function getCurrentMemberCount() external view returns (uint256);\n}\n\ncontract MemberPoll {\n    IERC1261Lite public immutable entity;\n    mapping(address =\u003e bool) public voted;\n    uint256 public yes;\n\n    constructor(IERC1261Lite _entity) { entity = _entity; }\n\n    function voteYes() external {\n        require(entity.isCurrentMember(msg.sender), \"not a member\");\n        require(!voted[msg.sender], \"already voted\");\n        voted[msg.sender] = true;\n        yes++;\n    }\n\n    // share of current members that voted yes, in basis points\n    function yesBps() external view returns (uint256) {\n        return yes * 10_000 / entity.getCurrentMemberCount();\n    }\n}\n```\n\n## Things to know\n\n- Status is **Stagnant**. The interface in the spec uses old Solidity syntax and will need adjusting to compile with modern compilers.\n- 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.\n- Membership is checked live, so a member revoked mid-poll fails later checks. Snapshot membership yourself if a vote needs a fixed electorate.\n- Later standards for non-transferable tokens include [ERC-5192](/eip-5192/) (minimal soulbound NFTs) and [ERC-4973](/eip-4973/) (account-bound tokens).\n"},"ja":{"lang":"ja","tldr":"アドレスがオンチェーン組織に属しているかどうか、どの属性を持つかを記録する、譲渡不可で取り消し可能なメンバーシップトークンの標準。1 人 1 票のガバナンスや許可制アクセスを可能にする。","tags":["membership","identity","governance","non-transferable","erc"],"related":[165,173,721,5192,4973],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-1261/","markdown":"## 何を解決するのか\n\nオンチェーン投票の多くはトークン残高で票の重みを決めるため、最も多くのトークンを持つ者が決定権を握ります。しかし現実の多くの組織は、代わりに単純な問いへの答えを必要とします。*このアドレスはメンバーか？* 仕様に挙げられている例には、議決権、投資家のホワイトリスト、ライセンスや許可証があります。\n\nERC-1261 は Membership Verification Token（MVT）を定義します。これは組織がアドレスに割り当てるトークンで、保有者は譲渡できず、組織は取り消すことができます。すると、どんなアプリでも 1 つの標準インターフェースを通じてメンバーシップを確認できます。\n\n## 仕組み\n\nMVT コントラクト（「エンティティ」）は、ERC-1261、[ERC-173](/eip-173/) の所有権、[ERC-165](/eip-165/) のインターフェース検出を実装しなければなりません。その ERC-165 インターフェース ID は `0x1d8362cf` です。\n\n**メンバーシップのライフサイクル**\n\n- `assignTo(to, attributeIndexes)`: 所有者が直接メンバーシップを付与します。\n- `requestMembership(attributeIndexes)`: ユーザーが参加を申請し、所有者が `approveRequest` または `discardRequest` を呼びます。\n- `revokeFrom(from)`: 所有者がメンバーを削除します。\n- `forfeitMembership()`: メンバーが自発的に脱退します。\n- `isCurrentMember(addr)` と `getCurrentMemberCount()` が基本的な問い合わせに答えます。`getAllMembers()` は過去と現在のメンバーを一覧します。\n\n**属性**\n\n各エンティティは、たとえば固定された値のリストを持つ「region」というヘッダーのような属性セットを定義します。各メンバーは、属性ごとにちょうど 1 つの値をインデックスとして保持します。仕様は、値のリストが排他的かつ網羅的であることを求めており、これによってメンバーが明確なサブグループに分けられます。すると投票は、たとえば「region が X のメンバー」を対象にできます。所有者は `addAttributeSet` と `modifyAttributeByIndex` で属性を管理します。\n\nイベント（`Assigned`、`Revoked`、`Forfeited`、`RequestedMembership`、`ApprovedMembership`、`ModifiedAttributes`）により、インデクサーはメンバーシップの変更を追跡できます。任意のメタデータ拡張として `name()` と `symbol()` が追加されます。\n\n## サンプルコード\n\nMVT エンティティのメンバーシップで関数を制限する:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC1261Lite {\n    function isCurrentMember(address who) external view returns (bool);\n    function getCurrentMemberCount() external view returns (uint256);\n}\n\ncontract MemberPoll {\n    IERC1261Lite public immutable entity;\n    mapping(address =\u003e bool) public voted;\n    uint256 public yes;\n\n    constructor(IERC1261Lite _entity) { entity = _entity; }\n\n    function voteYes() external {\n        require(entity.isCurrentMember(msg.sender), \"not a member\");\n        require(!voted[msg.sender], \"already voted\");\n        voted[msg.sender] = true;\n        yes++;\n    }\n\n    // share of current members that voted yes, in basis points\n    function yesBps() external view returns (uint256) {\n        return yes * 10_000 / entity.getCurrentMemberCount();\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。仕様のインターフェースは古い Solidity 構文を使っており、現代のコンパイラでコンパイルするには調整が必要です。\n- この設計は、トラストレス性と引き換えに使いやすさを得ています。エンティティの所有者は、メンバーを自由に追加・取り消しできます。仕様はこの点と、所有者が乗っ取られるリスクを率直に認めています。\n- メンバーシップはその場で確認されるため、投票の途中で取り消されたメンバーは、後のチェックに失敗します。投票で有権者を固定する必要がある場合は、自分でメンバーシップのスナップショットを取ってください。\n- 譲渡不可トークンの後の標準には、[ERC-5192](/eip-5192/)（最小限のソウルバウンド NFT）と [ERC-4973](/eip-4973/)（アカウントバウンドトークン）があります。\n"},"ko":{"lang":"ko","tldr":"주소가 온체인 조직에 속하는지, 어떤 속성을 가졌는지 기록하는 양도 불가능하고 철회 가능한 멤버십 토큰 표준. 1인 1표 거버넌스와 허가형 접근을 가능하게 한다.","tags":["membership","identity","governance","non-transferable","erc"],"related":[165,173,721,5192,4973],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-1261/","markdown":"## 어떤 문제를 해결하나요?\n\n대부분의 온체인 투표는 토큰 잔액으로 표의 비중을 정하므로 토큰을 가장 많이 가진 쪽이 결정합니다. 하지만 현실의 많은 조직은 대신 간단한 질문에 대한 답이 필요합니다. *이 주소는 구성원인가?* 명세에 나오는 예로는 투표권, 투자자 화이트리스트, 면허와 허가증이 있습니다.\n\nERC-1261은 멤버십 검증 토큰(Membership Verification Token, MVT)을 정의합니다. 조직이 주소에 할당하는 토큰으로, 보유자는 양도할 수 없고 조직은 철회할 수 있습니다. 그러면 어떤 앱이든 하나의 표준 인터페이스로 멤버십을 확인할 수 있습니다.\n\n## 어떻게 동작하나요?\n\nMVT 컨트랙트(\"엔티티\")는 ERC-1261, [ERC-173](/eip-173/) 소유권, [ERC-165](/eip-165/) 인터페이스 감지를 구현해야 합니다. ERC-165 인터페이스 ID는 `0x1d8362cf`입니다.\n\n**멤버십 수명 주기**\n\n- `assignTo(to, attributeIndexes)`: 소유자가 직접 멤버십을 부여합니다.\n- `requestMembership(attributeIndexes)`: 사용자가 가입을 요청하고, 소유자가 `approveRequest` 또는 `discardRequest`를 호출합니다.\n- `revokeFrom(from)`: 소유자가 구성원을 제거합니다.\n- `forfeitMembership()`: 구성원이 자발적으로 탈퇴합니다.\n- `isCurrentMember(addr)`와 `getCurrentMemberCount()`가 기본 질의에 답하고, `getAllMembers()`는 과거와 현재의 구성원을 나열합니다.\n\n**속성**\n\n각 엔티티는 속성 세트를 정의합니다. 예를 들어 고정된 값 목록을 가진 \"region\" 헤더입니다. 각 구성원은 속성마다 정확히 하나의 값을 인덱스로 저장합니다. 명세는 값 목록이 배타적이고 빠짐없어야 한다고 요구하여 구성원이 깔끔한 하위 그룹으로 나뉘게 합니다. 그러면 투표는 예를 들어 \"region이 X인 구성원\"을 대상으로 할 수 있습니다. 소유자는 `addAttributeSet`과 `modifyAttributeByIndex`로 속성을 관리합니다.\n\n이벤트(`Assigned`, `Revoked`, `Forfeited`, `RequestedMembership`, `ApprovedMembership`, `ModifiedAttributes`)로 인덱서가 멤버십 변경을 추적할 수 있습니다. 선택적 메타데이터 확장은 `name()`과 `symbol()`을 추가합니다.\n\n## 샘플 코드\n\nMVT 엔티티의 멤버십으로 함수를 제한하기:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC1261Lite {\n    function isCurrentMember(address who) external view returns (bool);\n    function getCurrentMemberCount() external view returns (uint256);\n}\n\ncontract MemberPoll {\n    IERC1261Lite public immutable entity;\n    mapping(address =\u003e bool) public voted;\n    uint256 public yes;\n\n    constructor(IERC1261Lite _entity) { entity = _entity; }\n\n    function voteYes() external {\n        require(entity.isCurrentMember(msg.sender), \"not a member\");\n        require(!voted[msg.sender], \"already voted\");\n        voted[msg.sender] = true;\n        yes++;\n    }\n\n    // share of current members that voted yes, in basis points\n    function yesBps() external view returns (uint256) {\n        return yes * 10_000 / entity.getCurrentMemberCount();\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 명세의 인터페이스는 오래된 Solidity 문법을 사용하므로 최신 컴파일러로 컴파일하려면 수정이 필요합니다.\n- 이 설계는 신뢰 최소화를 희생하는 대신 사용성을 택했습니다. 엔티티 소유자는 마음대로 구성원을 추가하거나 철회할 수 있습니다. 명세도 이 점과 소유자가 장악당할 위험을 솔직하게 인정합니다.\n- 멤버십은 실시간으로 확인되므로 투표 도중 철회된 구성원은 이후 검사에서 실패합니다. 투표에 고정된 유권자가 필요하다면 멤버십 스냅샷을 직접 찍으세요.\n- 양도 불가능 토큰에 대한 이후의 표준으로는 [ERC-5192](/eip-5192/)(최소한의 소울바운드 NFT)와 [ERC-4973](/eip-4973/)(계정 바운드 토큰)가 있습니다.\n"},"zh":{"lang":"zh","tldr":"一种不可转让、可撤销的会员代币标准，记录某个地址是否属于某个链上组织以及具有哪些属性，可实现一人一票的治理和许可式访问。","tags":["membership","identity","governance","non-transferable","erc"],"related":[165,173,721,5192,4973],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-1261/","markdown":"## 它解决什么问题？\n\n大多数链上投票按代币余额加权，因此持有代币最多的人说了算。许多现实中的组织则需要回答一个简单的问题：*这个地址是成员吗？* 规范中的例子包括投票权、投资者白名单、执照和许可证。\n\nERC-1261 定义了会员验证代币（Membership Verification Token，MVT）：由组织分配给某个地址的代币，持有者不能转让，组织可以撤销。这样，任何应用都可以通过一个标准接口检查成员资格。\n\n## 它如何运作\n\nMVT 合约（“实体”）必须实现 ERC-1261、[ERC-173](/eip-173/) 所有权和 [ERC-165](/eip-165/) 接口检测。它的 ERC-165 接口 ID 是 `0x1d8362cf`。\n\n**成员资格的生命周期**\n\n- `assignTo(to, attributeIndexes)`：所有者直接授予成员资格。\n- `requestMembership(attributeIndexes)`：用户申请加入；所有者随后调用 `approveRequest` 或 `discardRequest`。\n- `revokeFrom(from)`：所有者移除某个成员。\n- `forfeitMembership()`：成员自愿退出。\n- `isCurrentMember(addr)` 和 `getCurrentMemberCount()` 回答基本查询；`getAllMembers()` 列出过去和现在的成员。\n\n**属性**\n\n每个实体定义属性集，例如带有固定取值列表的“region”标题。每个成员对每个属性恰好持有一个值，以索引形式存储。规范要求取值列表互斥且穷尽，从而把成员划分为清晰的子群体。这样投票就可以针对例如“region 为 X 的成员”。所有者用 `addAttributeSet` 和 `modifyAttributeByIndex` 管理属性。\n\n事件（`Assigned`、`Revoked`、`Forfeited`、`RequestedMembership`、`ApprovedMembership`、`ModifiedAttributes`）让索引器可以跟踪成员变化。可选的元数据扩展增加了 `name()` 和 `symbol()`。\n\n## 示例代码\n\n根据 MVT 实体中的成员资格来限制函数：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC1261Lite {\n    function isCurrentMember(address who) external view returns (bool);\n    function getCurrentMemberCount() external view returns (uint256);\n}\n\ncontract MemberPoll {\n    IERC1261Lite public immutable entity;\n    mapping(address =\u003e bool) public voted;\n    uint256 public yes;\n\n    constructor(IERC1261Lite _entity) { entity = _entity; }\n\n    function voteYes() external {\n        require(entity.isCurrentMember(msg.sender), \"not a member\");\n        require(!voted[msg.sender], \"already voted\");\n        voted[msg.sender] = true;\n        yes++;\n    }\n\n    // share of current members that voted yes, in basis points\n    function yesBps() external view returns (uint256) {\n        return yes * 10_000 / entity.getCurrentMemberCount();\n    }\n}\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**。规范中的接口使用旧的 Solidity 语法，需要调整后才能用现代编译器编译。\n- 该设计以去信任化换取易用性：实体所有者可以随意添加或撤销成员。规范坦率承认了这一点，以及所有者被控制的风险。\n- 成员资格是实时检查的，所以在投票中途被撤销的成员会在之后的检查中失败。如果投票需要固定的选民范围，请自行对成员资格做快照。\n- 后来的不可转让代币标准包括 [ERC-5192](/eip-5192/)（最小化的灵魂绑定 NFT）和 [ERC-4973](/eip-4973/)（账户绑定代币）。\n"}},"requiredBy":[1417]}
