注册
登录
新闻动态
其他科技
返回
NFT 误解:JPEG 不在区块链上
作者:
糖果
发布时间:
2024-09-04 03:59:48 (1月前)
来源:
image-arent-on-blockchains/
今天对 NFT 的最大误解是它们是存储在以太坊区块链上的“jpeg”图像,其实不然。可能是因为数字艺术很容易形象化,而著名艺术家今天试图在 Opensea 等平台上将他们的数字艺术作为 NFT 出售,这在过去几个月中引起了很多关注。 艺术家开始在一张纸上创作它们,然后是他们的电脑。但是当他们将其转换为 NFT 时,是什么让您成为它的所有者?艺术家的办公桌或电脑上还没有原件吗?将其转换为 NFT 的过程?他们真的在区块链上吗?但他们不是。它们在一台服务器上,而不是在区块链上。 “数字艺术”甚至不存储在区块链上 ERC-721是规定如何创建 NFT 的标准。每个 ERC721 NFT 都必须有一个tokenURI字段,即指向存储在外部服务器上的 JSON 文件的外部链接(通常不是以太坊区块链!)。此 JSON 文件包含metadata将描述 NFT的信息。它看起来像这样: { "title": "Asset Metadata", "properties": { "name": { "description": "Identifies the asset to which this NFT represents" }, "description": { "description": "Describes the asset to which this NFT represents" }, "image": { "description": "A URI pointing to a resource with mime type image/* representing the asset to which this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive." } } } 您可以注意到该image字段,它是指向图像的链接。如果我们以Project Memento为例,一个 NFT 允许将您拥有的瓷砖更改为所需的字母。您基本上可以在网站上交易“坐标”,并且项目本身不需要图像即可工作。 对于 NFT [8,9](刚刚以 0.5ETH 的价格出售 - 约 2000 美元!),元数据文件如下所示: { "name": "Project Memento [8,9]", "image": "https://memento.pages.dev/images/8-9.svg", "attributes": [ { "trait_type": "Coordinate X", "value": "8" }, { "trait_type": "Coordinate Y", "value": "9" } ] } 您可以注意到"image"指向https://memento.pages.dev/images/8-9.svg的字段。我们的 NFT 不需要图像。但是,拥有它的代表可能会很棒,特别是如果该项目最终在opensea 上进行。我们不得不发挥我们的想象力,并决定在一个正方形上做一个标记,代表您在我们的网格上获得的瓷砖的相对位置。 纪念品代表 该tokenURI字段符合 ER721 标准,可在 Opensea 或 Rarible 等平台上读取。如果您遵循 ERC-721 标准,它将使您的 NFT 可立即在这些平台上进行交易。拥有吸引人的图像可以帮助您使您的 NFT 项目更加引人注目。因此,即使Project-Memento与 JPEG 无关,我们还是为其附加了一张图片,以使其更具吸引力。 为什么不将图像存储在区块链上? 我们可以将它们存储在区块链上,但这会非常昂贵。以太坊区块链不是为此而设计的。你想做的每一个动作,以及你存储在区块链上的每一条信息都有成本。您肯定听说过以太坊交易的价格过高。高昂的价格是针对一个只有 1 或 2 千字节的小型代码程序。如果我们要在其上存储图像: 数据存储的成本是每千字节数据 640k gas。 当前的 gas 价格约为 50 Gwei(或 0.000000050 ETH)。 以今天的价格(2021 年 10 月 30 日),1 ETH 约为 4000 美元。 图像的每千字节将花费 40 美元 如果我们假设 jpg 重量约为 500kb,那么存储图像的成本将达到 20,000 美元!如果您想用高分辨率存储一些东西,甚至更好的原始图像,该怎么办?我让你做数学! 结论 由于价格高昂,大多数 NFT 使用我上面描述的技术。还有其他技术,例如使用像IPFS这样的解决方案,一种“去中心化”服务。 最著名的“艺术 NFT”,例如 cryptokitty 或 Cryptopunk,都使用了所有类似的技术。所有这些图像都托管在外部服务器上,而不是在以太坊区块链本身上。元数据和 NFT 不是一回事。相反,您的 NFT(数字资产本身)包含一个指向元数据的链接,该链接位于在线其他地方。如果您是一个普通的互联网用户,您就会知道有时链接会失效(提示臭名昭著的“404 页面未找到”网页)。托管平台不会永远存在,如果您的 NFT 存在于常规网站上,如果该网站因任何原因关闭,您可能会失去它以及所有相关价值。 因此,在购买任何 NFT 之前,请尝试了解您购买的是什么,甚至更好的是,它是如何工作的!
收藏
举报
1 条回复
动动手指,沙发就是你的了!
登录
后才能参与评论