Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article covers ERC5585, a proposal to separate ownership of ERC721 NFTs from other rights, including usage rights.
This article translates, summarizes, and expands on the following specification.
As of September 7, 2023, 5585 was in the Review stage.
Overview
This proposal concerns ERC721 non-fungible tokens (NFTs). An NFT generally represents ownership of a particular digital asset or piece of content.
The proposal separates NFT ownership from the right to use the associated digital asset commercially. In other words, the NFT holder and the party holding rights to conduct business using that asset can be managed separately.
This matters because even if NFT owners do not commercially exploit their artwork or other digital content themselves, they can sell or license those commercial usage rights to other people or businesses. The rights of the NFT owner and those of the commercial rights holder can therefore be managed independently, even when they are different parties.
This proposal makes NFT usage more flexible and could create new revenue opportunities for artists and content creators.
Motivation
NFTs (non-fungible tokens) typically use a system in which ownership of a digital asset is assigned to a single owner. The holder of an NFT is recognized as the sole owner of that asset. Under this model, transferring rights associated with the digital asset to other people is difficult. For example, a holder of a digital art NFT cannot directly use the standard to authorize another person to display the art, create derivative works, or distribute it. This limits the commercial value and use of NFTs.
The proposal separates NFT ownership from the rights to commercially use the digital asset. It aims to allow the NFT owner and the associated rights (commercial use, display, creation of derivative works, distribution, and so on) to be managed independently. Even when NFT holders do not commercially use their digital assets themselves, they can grant or sell those rights to others. For example, an artist holding an NFT of their digital art can license another party to use that art commercially.
Commercial rights include various rights derived from copyright. These include copying, displaying, distributing, lending, commercial use, modifying, reproducing, and sublicensing. With the development of the metaverse, NFTs have found uses in digital collectibles, virtual real estate, music, art, and social media. Separating NFT ownership from commercial rights opens the possibility of business models based on copyright and authorization in these emerging areas.
Specification
Contract Interface
interface IERC5585 {
struct UserRecord {
address user;
string[] rights;
uint256 expires
}
/// @notice Get all available rights of this NFT project
/// @return All the rights that can be authorized to the user
function getRights() external view returns(string[]);
/// @notice NFT holder authorizes all the rights of the NFT to a user for a specified period of time
/// @dev The zero address indicates there is no user
/// @param tokenId The NFT which is authorized
/// @param user The user to whom the NFT is authorized
/// @param duration The period of time the authorization lasts
function authorizeUser(uint256 tokenId, address user, uint duration) external;
/// @notice NFT holder authorizes specific rights to a user for a specified period of time
/// @dev The zero address indicates there is no user. It will throw exception when the rights are not defined by this NFT project
/// @param tokenId The NFT which is authorized
/// @param user The user to whom the NFT is authorized
/// @param rights Rights autorised to the user, such as renting, distribution or display etc
/// @param duration The period of time the authorization lasts
function authorizeUser(uint256 tokenId, address user, string[] rights, uint duration) external;
/// @notice The user of the NFT transfers his rights to the new user
/// @dev The zero address indicates there is no user
/// @param tokenId The rights of this NFT is transferred to the new user
/// @param newUser The new user
function transferUserRights(uint256 tokenId, address newUser) external;
/// @notice NFT holder extends the duration of authorization
/// @dev The zero address indicates there is no user. It will throw exception when the rights are not defined by this NFT project
/// @param tokenId The NFT which has been authorized
/// @param user The user to whom the NFT has been authorized
/// @param duration The new duration of the authorization
function extendDuration(uint256 tokenId, address user, uint duration) external;
/// @notice NFT holder updates the rights of authorization
/// @dev The zero address indicates there is no user
/// @param tokenId The NFT which has been authorized
/// @param user The user to whom the NFT has been authorized
/// @param rights New rights autorised to the user
function updateUserRights(uint256 tokenId, address user, string[] rights) external;
/// @notice Get the authorization expired time of the specified NFT and user
/// @dev The zero address indicates there is no user
/// @param tokenId The NFT to get the user expires for
/// @param user The user who has been authorized
/// @return The authorization expired time
function getExpires(uint256 tokenId, address user) external view returns(uint);
/// @notice Get the rights of the specified NFT and user
/// @dev The zero address indicates there is no user
/// @param tokenId The NFT to get the rights
/// @param user The user who has been authorized
/// @return The rights has been authorized
function getUserRights(uint256 tokenId, address user) external view returns(string[]);
/// @notice The contract owner can update the number of users that can be authorized per NFT
/// @param userLimit The number of users set by operators only
function updateUserLimit(unit256 userLimit) external onlyOwner;
/// @notice resetAllowed flag can be updated by contract owner to control whether the authorization can be revoked or not
/// @param resetAllowed It is the boolean flag
function updateResetAllowed(bool resetAllowed) external onlyOwner;
/// @notice Check if the token is available for authorization
/// @dev Throws if tokenId is not a valid NFT
/// @param tokenId The NFT to be checked the availability
/// @return true or false whether the NFT is available for authorization or not
function checkAuthorizationAvailability(uint256 tokenId) public view returns(bool);
/// @notice Clear authorization of a specified user
/// @dev The zero address indicates there is no user. The function works when resetAllowed is true and it will throw exception when false
/// @param tokenId The NFT on which the authorization based
/// @param user The user whose authorization will be cleared
function resetUser(uint256 tokenId, address user) external;
/// @notice Emitted when the user of a NFT is changed or the authorization expires time is updated
/// param tokenId The NFT on which the authorization based
/// param indexed user The user to whom the NFT authorized
/// @param rights Rights autorised to the user
/// param expires The expires time of the authorization
event authorizeUser(uint256 indexed tokenId, address indexed user, string[] rights, uint expires);
/// @notice Emitted when the number of users that can be authorized per NFT is updated
/// @param userLimit The number of users set by operators only
event updateUserLimit(unit256 userLimit);
}getRights()retrieves information about available rights.authorizeUser(uint256 tokenId, address user, uint duration)authorizes an NFT user.authorizeUser(uint256 tokenId, address user, string[] rights; uint duration)also authorizes a user, but allows specific rights to be passed as an array of strings.transferUserRights(uint256 tokenId, address newUser)transfers a user's rights to another user.extendDuration(uint256 tokenId, address user, uint duration)extends the validity period of a user's authorization.updateUserRights(uint256 tokenId, address user, string[] rights)updates a user's rights.getExpires(uint256 tokenId, address user)retrieves a user's authorization expiration time.getUserRights(uint256 tokenId, address user)retrieves a user's rights.updateUserLimit(unit256 userLimit)updates the number of users who can be authorized per NFT.updateResetAllowed(bool resetAllowed)updates whether reset operations are permitted.checkAuthorizationAvailability(uint256 tokenId)checks whether a given NFT is available for authorization.- The
authorizeUserevent is emitted when an NFT's user changes or the authorization expiration time is updated. - The
updateUserLimitevent is emitted when the permitted number of users per NFT is updated.
UserRecord
struct UserRecord {
address user;
string[] rights;
uint256 expires;
}Overview A data structure used to store user information for an ERC721 NFT.
Parameters
user- The user's Ethereum address.
rights- A list of strings representing rights granted to the user, such as copying, displaying, and distributing.
- It indicates which rights the user holds.
expires- An integer representing the expiration time of the authorization.
- Expressed as a UNIX timestamp (seconds since the epoch), it indicates the date and time until which the authorization is valid.
authorizeUser
event authorizeUser(uint256 indexed tokenId, address indexed user, string[] rights, uint expires);Overview An event emitted when the user of an ERC721 NFT changes or the expiration time of an authorization is updated.
Parameters
tokenId- The token ID of the relevant ERC721 NFT.
user- The Ethereum address of the user receiving the authorization.
- It identifies which user holds rights to a particular NFT.
rights- The list of rights granted to the user.
- Examples include copying, displaying, and distributing.
expires- An integer indicating the authorization expiration time.
- Expressed as a UNIX timestamp, it indicates the period for which the rights are valid.
updateUserLimit
event updateUserLimit(unit256 userLimit);Overview An event emitted when the number of users who may be authorized per ERC721 NFT is updated.
Parameters
userLimit- An integer setting the maximum number of users who may be authorized per ERC721 NFT.
getRights
function getRights() external view returns(string[]);Overview Retrieves all available rights defined by the NFT project.
Details Returns all rights that can be granted to users. These include rights such as rental, streaming, and display.
Return Value An array of strings containing all rights that can be granted to users.
authorizeUser
function authorizeUser(uint256 tokenId, address user, uint duration) external;Overview Allows the NFT owner to grant a specified user all rights to an NFT for a specified period.
Details
For a given NFT, the owner grants all rights to a specified user address (user) for the specified period (duration).
A user address of 0 indicates that there is no user.
Arguments
tokenId- The token ID of the NFT to authorize.
user- The address of the user receiving the rights.
duration- The authorization duration in seconds.
authorizeUser
function authorizeUser(uint256 tokenId, address user, string[] rights, uint duration) external;Overview Allows the NFT owner to grant specific rights to a specified user for a specified period.
Details
For a given NFT, the owner grants specified rights (rights) to a specified user address (user) for the specified period (duration).
An exception is thrown if the rights are not defined by the NFT project.
A user address of 0 indicates that there is no user.
Arguments
tokenId- The token ID of the NFT to authorize.
user- The address of the user receiving the rights.
rights- An array of strings specifying the rights to grant.
duration- The authorization duration in seconds.
transferUserRights
function transferUserRights(uint256 tokenId, address newUser) external;Overview Allows an NFT user to transfer their rights to a new user.
Details
The NFT user transfers rights associated with a given NFT to a new user address (newUser).
A user address of 0 indicates that there is no user.
Arguments
tokenId- The token ID of the NFT whose rights are being transferred.
newUser- The address of the new user who receives the rights.
extendDuration
function extendDuration(uint256 tokenId, address user, uint duration) external;Overview Allows the NFT owner to extend an authorization period.
Details
For a given NFT, the owner extends a particular user's (user) authorization to a new duration (duration).
A user address of 0 indicates that there is no user.
Arguments
tokenId- The token ID of the NFT whose authorization period is being extended.
user- The address of the user whose authorization is being extended.
duration- The new authorization duration in seconds.
updateUserRights
function updateUserRights(uint256 tokenId, address user, string[] rights) external;Overview Allows the NFT owner to update the rights of a specific user.
Details
For a given NFT, the owner updates the rights of a particular user (user) to a new set of rights (rights).
A user address of 0 indicates that there is no user.
Arguments
tokenId- The token ID of the NFT whose rights are being updated.
user- The address of the user whose rights are being updated.
rights- An array of strings specifying the new rights.
getExpires
function getExpires(uint256 tokenId, address user) external view returns(uint);Overview Retrieves the authorization expiration time for a specified NFT and user.
Details
The NFT owner retrieves the expiration time, expressed in seconds, for the specified NFT and user (user).
A user address of 0 indicates that there is no user.
Arguments
tokenId- The token ID of the NFT whose authorization expiration is being retrieved.
user- The address of the user whose authorization expiration is being retrieved.
Return Value An integer representing the authorization expiration time in seconds.
getUserRights
function getUserRights(uint256 tokenId, address user) external view returns(string[]);Overview Retrieves the rights for a specified NFT and user.
Details
The NFT owner retrieves the array of strings representing the rights granted to a given user (user) for the specified NFT.
A user address of 0 indicates that there is no user.
Arguments
tokenId- The token ID of the NFT whose rights are being retrieved.
user- The address of the user whose rights are being retrieved.
Return Value An array of strings containing the granted rights.
updateUserLimit
function updateUserLimit(uint256 userLimit) external onlyOwner;Overview Allows the contract owner to update the number of users who may be authorized per NFT.
Details
The contract owner updates the maximum number of authorized users per NFT to a new value (userLimit).
Arguments
userLimit- The maximum number of users set by operators.
updateResetAllowed
function updateResetAllowed(bool resetAllowed) external onlyOwner;Overview
Allows the contract owner to update the resetAllowed flag, which controls whether an authorization may be revoked.
Details
The contract owner sets the resetAllowed flag to enable or disable revocation.
When resetAllowed is true, revocation is possible.
When resetAllowed is false, revocation is not permitted.
Arguments
resetAllowed- A Boolean value enabling or disabling revocation.
checkAuthorizationAvailability
function checkAuthorizationAvailability(uint256 tokenId) public view returns(bool);Overview Checks whether the NFT with the specified token ID is available for authorization.
Details Checks whether the specified NFT is available for authorization. An exception is thrown if the token does not exist or is not a valid NFT.
Arguments
tokenId- The token ID of the NFT to check.
Return Value
Returns true if the NFT is available for authorization and false otherwise.
resetUser
function resetUser(uint256 tokenId, address user) external;Overview Resets the authorization of a specified NFT and user.
Details
The contract owner resets the authorization of the specified NFT and user.
If resetAllowed is false, an exception is thrown.
A user address of 0 indicates that there is no user.
Arguments
tokenId- The token ID of the NFT whose authorization is being reset.
user- The address of the user whose authorization is being reset.
Additional Notes
Maximum Number of Authorized Users and Revocation
The proposal allows NFT contract owners to set the maximum number of authorized users for each NFT. This lets NFT owners limit the number of people with whom they share their digital assets. Owners can also revoke user authorization whenever necessary. These mechanisms support flexible digital asset rights management and help protect the interests of the parties involved.
resetAllowed
The proposal introduces the resetAllowed flag.
If this flag is set to true, NFT owners can revoke authorized users' usage rights at any time.
It provides a way to control the management of rights between users within the contract.
For example, owners may revoke rights in an emergency or for security reasons.
Rights in User Records
The user record structure enables NFT owners to grant specific rights to users. Owners can grant individual users specific rights, such as copying, displaying, or distributing, and update those rights when needed. Different rights can therefore be managed for individual users.
Integration with Third Parties
The proposal is designed as an extension to ERC721 and can integrate with other NFT projects. This makes it easy to add the functionality to new NFT projects. Other projects can use the interfaces and functions to implement their own transactions and functionality. For example, an announcement platform could use the EIP to allow NFT owners to grant or revoke permissions at any time, opening up new use cases.
Backward Compatibility
This standard extends ERC721 and is compatible with it.
Security Considerations
When the resetAllowed flag is false, meaning that NFT owners cannot revoke an authorization during the applicable period, users need to ensure that fees are allocated fairly if an NFT is sold to a new owner.
One suggested mechanism is as follows.
Fees paid by a user are temporarily held in a contract according to the authorization period.
For example, suppose an authorization lasts 12 months, costs 10ETH in total, and the NFT is transferred to a new owner after 3 months.
In the original example, 2.5ETH, corresponding to 3 months of the fee, is transferred to the new owner, while the remaining 7.5ETH is refunded to the original user.
The mechanism is intended to ensure that fees already paid for authorization are fairly distributed and refunded to the original user even when NFT ownership changes. It aims to protect the interests of both the user and the new NFT owner and promote fair transactions.
Citation
Veega Labs (@VeegaLabsOfficial), Sean NG (@ngveega), Tiger (@tiger0x), Fred (@apan), Fov Cao (@fovcao), "ERC-5585: ERC-721 NFT Authorization [DRAFT]," Ethereum Improvement Proposals, no. 5585, August 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5585.
Conclusion
This article covered ERC5585, a proposal to separate ownership of ERC721 NFTs from various associated rights, including usage rights.
If you have questions, feel free to send me a DM on Twitter.
I also share information on other platforms.


