ERC-1523 Insurance policy NFT standard (Standard for Insurance Policies as ERC-721 Non Fungible Tokens)
Stagnant · NFTs & multi-token · created 2018-10-10
A metadata standard that turns insurance policies into ERC-721 NFTs, allowing multiple parties such as insurers and brokers to issue, look up, and trade policies in a common way.
Why it is needed
An insurance policy contains information unique to it, such as the customer, specific risk, premium, term, insurer, and underwriter, making it inherently close to a non-fungible asset. However, if each project building decentralized insurance stores policy data in a different structure, it becomes difficult for other brokers or trading platforms to read, resell, or bundle and sell (securitize) policies issued by one service. Without a standardized metadata structure, interoperability for syndicates, brokers, and insurers to bundle or trade policies across different protocols breaks down, requiring custom integration work every time.
What to implement
function policyMetadata(uint256 _tokenId, bytes32 _propertyPathHash) external view returns (string _property);: Returns a single metadata attribute value as a string for the specified token. This attribute is identified by a hash of the attribute path.
In depth
Required interface: based on ERC-721
A token conforming to ERC-1523 MUST follow the ERC-721 standard and must also implement the ERC721Metadata and ERC721Enumerable interfaces. The ERC-165 identifier for this interface is 0x5a04be32, and the name and symbol values MAY be freely chosen by the implementer.
Optional policyMetadata extension
Implementing the policyMetadata(_tokenId, _propertyPathHash) function is RECOMMENDED but not required. Attributes are identified by a keccak256 hash of their path in the JSON schema (for example, the path for the name attribute is /properties/name). If an invalid propertyPathHash is passed in, the function must throw. The ERC-165 identifier for this interface is also 0x5a04be32.
Metadata JSON pointed to by tokenURI
tokenURI MUST point to a JSON file that extends the ERC-721 Metadata JSON schema. In addition to the basic name and description fields, additional insurance-specific fields are defined.
Required parameters: carrier, risk, status
The three parameters marked 'Mandatory = yes' in the table must be included in the metadata. carrier describes the insurer bearing the primary risk, and risk describes the risk being covered; a many-to-one relationship where multiple policies share a single risk is also possible (for example, multiple delay-insurance policies for the same flight). status represents the policy's lifecycle state (for example, applied for, underwritten, expired).
Optional parameters: parameters, terms, premium, sum_insured
parameters is additional information characterizing the risk, terms is the applicable legal terms, premium is the insurance premium, and sum_insured is the insured amount expressed as a string; premium and sum_insured MAY include a currency unit. When these values are included, the names specified in the table SHOULD be used as is. All values may be plain text or a URI pointing to an external resource, and that external resource MAY be protected by an authentication mechanism.
Choosing on-chain vs. off-chain metadata
For simple applications, storing metadata in an off-chain store or database pointed to by tokenURI is sufficient, but for more advanced applications it may be desirable to look up attributes directly on-chain. For this reason, tokenURI MUST point to JSON with the structure above, while implementing the policyMetadata function is left OPTIONAL.
Proposal status
This proposal is currently in Stagnant status, with discussion no longer progressing. Details may change or it may be abandoned entirely before adoption.