Skip to content

Instantly share code, notes, and snippets.

View sabotagebeats's full-sized avatar
🌴
Living my best life

Dogestradamus sabotagebeats

🌴
Living my best life
View GitHub Profile
@alex-miller-0
alex-miller-0 / metaNFT.md
Created March 6, 2018 00:41
Meta-Non-Fungible Token

Meta-Non-Fungible Token

Non-fungible tokens (NFTs) are all the rage these days, but their current manifestation (ERC721) is inefficient. It is not possible to move multiple tokens at the same time or package multiple tokens for e.g. deposit into a plasma child chain.

Contract pseudocode

The following is a new design for an NFT token that allows aggregation of assets. The rest of the functionality can be inherited from ERC721.

contract NFT {
 tokens mapping(address => mapping(bytes32 => uint));