web3wagmi
← All standards

ERC-5791 Physical Backed Tokens

DraftERCcreated 2022-10-17requires ERC-191, ERC-721

Minimal interface for linking ownership of ERC-721 NFTs to a physical chip

Authors: 2pmflow (@2pmflow), locationtba (@locationtba), Cameron Robertson (@ccamrobertson), cygaar (@cygaar), Brian Weick (@bweick), vectorized (@vectorized), djdabs (@djdabs)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IERC57910x83e70509
The spec asserts 0x4901df9f for IERC5791, which its own interface does not produce.

Asserted value is the XOR of tokenIdFor(address), isChipSignatureForToken(uint256,bytes,bytes) and the two removed transferTokenWithChip overloads, so it predates their replacement by transferToken(address,address,bytes,uint256,bool,bytes). Found by exhaustive subset search; no combination with ERC-721 or ERC-165 reproduces it.

Functions this standard introduces (3)

0x4b5f42eaisChipSignatureForToken(uint256,bytes,bytes)view
0x08daee36tokenIdFor(address)view
0xc062a9d5transferToken(address,address,bytes,uint256,bool,bytes)

Events (1)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x8aa3bca688e432597d356446777ef9bf9bb05117bb4592dc9b25e31d92cea207ChipSet(uint256,address)

Depends on (2)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion