ethereum / EIPs

The Ethereum Improvement Proposal repository
https://eips.ethereum.org/
Creative Commons Zero v1.0 Universal
12.88k stars 5.27k forks source link

Tagging Tokens Indicator Interface - Discussion #2630

Closed RandomDecryptor closed 2 years ago

RandomDecryptor commented 4 years ago

eip: title: Tagging Tokens Indicator Interface author: Francisco (@RandomDecryptor) discussions-to: status: Draft type: Standards Track category: ERC created: 2020-05-02 requires: 20

Simple Summary

Tagging tokens provide a simple way, using compatibility with ERC-20 tokens, to tag certain ethereum addresses. This standard will allow for a simple way to distinguish between normal ERC-20 tokens and taggings tokens.

Abstract

A simple standard just to distinguish normal ERC-20 tokens from tagging tokens.

Motivation

Tagging tokens will allow the tagging of any ethereum address. Users using any wallet that supports standard ERC-20 will be able to see the tags in their wallets. Or using etherscan (or other blockchain explorer's compatible with ERC-20 tokens) see the taggings in the ethereum addresses they want (maybe to check if an address is safe to interact with).

This new interface will allow wallets to easily ignore or separate the tagging tokens if they so choose to.

Specification

solidity
contract ITag {

    function isTag() public constant returns (bool);

    function getTagVersion() public constant returns (bytes4);

}

isTag

Will show if the contract is a tag (tagging token). It will return true in that case.

getTagVersion

Returns the tag version. The version will be a byte array, like the following 1.0.5.2, with each byte being a part of the version. The first byte will be the major version, the second byte the minor version and so on.

Rationale

The main aspect of the interface is, of course, the isTag() function.

With it, wallets and blockchain explorers can detect if the ERC-20 token they are checking is a normal ERC-20 token or a tagging token. The getTagVersion function is to allow for future evolutions, so it's possible to know the version of the Tag.

Tags in its initial version (version 1.0.0.0), will have the following restrictions:

So tagging tokens would be a subset of ERC-20 tokens with the restrictions mentioned above applied.

Implementation

References

Security Considerations

In terms of just this simple interface, no security issues should emerge.

Only certain privacy problems can maybe appear from the using of Taggings Tokens, if they are used in some way to expose information associated with certain ethereum addresses.

Copyright

Copyright and related rights waived via CC0.

github-actions[bot] commented 2 years ago

There has been no activity on this issue for two months. It will be closed in a week if no further activity occurs. If you would like to move this EIP forward, please respond to any outstanding feedback or add a comment indicating that you have addressed all required feedback and are ready for a review.

github-actions[bot] commented 2 years ago

This issue was closed due to inactivity. If you are still pursuing it, feel free to reopen it and respond to any feedback or request a review in a comment.