Skip to content

Commit

Permalink
Adds Contract and Serial Number field to the schema (ethereum#6619)
Browse files Browse the repository at this point in the history
  • Loading branch information
darcys22 authored and axelcabee committed May 6, 2023
1 parent 5705538 commit fe32fab
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions EIPS/eip-5570.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ requires: 721

## Abstract

This EIP proposes a standard schema for digital receipts of transactions. Digital Receipt Non-Fungible Tokens are issued by a vendor when a customer makes a purchase from their store and contains transaction details necessary for record keeping. Digital Receipt Non-Fungible Tokens extend [EIP-721](./eip-721.md) which allows for the management and ownership of unique tokens.
This ERC proposes a standard schema for digital receipts of transactions. Digital Receipt Non-Fungible Tokens are issued by a vendor when a customer makes a purchase from their store and contains transaction details necessary for record keeping. Digital Receipt Non-Fungible Tokens extend [ERC-721](./eip-721.md) which allows for the management and ownership of unique tokens.

## Motivation

Expand Down Expand Up @@ -213,6 +213,16 @@ The JSON schema is composed of 2 parts. The root schema contains high level deta
"type": "string",
"format": "uri"
},
"contract": {
"title": "Contract",
"description": "URL link or hash to an external contract for this product or service",
"type": "string"
},
"serial_number": {
"title": "Serial Number",
"description": "Serial number of the item",
"type": "string"
},
"date": {
"title": "Supply Date",
"description": "The date the goods or service were provided",
Expand Down Expand Up @@ -261,11 +271,11 @@ The JSON schema is composed of 2 parts. The root schema contains high level deta

## Rationale

The schema introduced complies with EIP-721's metadata extension, conveniently allowing previous tools for viewing NFTs to show our receipts. The new property "receipt" contains our newly provided receipt structure and the signature property optionally allows the vendor to digitally sign the receipt structure.
The schema introduced complies with ERC-721's metadata extension, conveniently allowing previous tools for viewing NFTs to show our receipts. The new property "receipt" contains our newly provided receipt structure and the signature property optionally allows the vendor to digitally sign the receipt structure.

## Backwards Compatibility

This standard is an extension of EIP-721. It is compatible with both optional extensions, Metadata and Enumerable, mentioned in EIP-721.
This standard is an extension of ERC-721. It is compatible with both optional extensions, Metadata and Enumerable, mentioned in ERC-721.

## Security Considerations

Expand Down

0 comments on commit fe32fab

Please sign in to comment.