News for hackers. Stuff that matters.
Re:Bored Ape conference attendees wake up with eye pain, vis... by astrange on Monday November 06, 2023 @06:42PM (#38170925)
A signed git commit is actually immutable. An NFT is generally the signed text of a URL, which kind of isn't.
Re:Bored Ape conference attendees wake up with eye pain, vis... by LelouBil on Monday November 06, 2023 @07:10PM (#38171200)
Wait what, I thought it was at least the hash of the image or something.
Re:Bored Ape conference attendees wake up with eye pain, vis... by matteoraso on Monday November 06, 2023 @07:16PM (#38171254)
No, NFTs technically have nothing to do with images, or files at all. The way it works is that you write a random string and save it on a blockchain, which becomes the NFT. From there, you can use a lookup table to map the NFT to a URL that links to an image that's stored on the owner's server. NFTs are truly the worst of all grifts.
Re:Bored Ape conference attendees wake up with eye pain, vis... by thrwy_918 on Monday November 06, 2023 @08:31PM (#38171950)
AFAIK it is often perfectly possible to actually encode image data on-chain, it is just much more expensive (and much less common as a result)
Re:Bored Ape conference attendees wake up with eye pain, vis... by TaylorAlexander on Monday November 06, 2023 @08:49PM (#38172114)
Perhaps but the standard NFT is a URL encoded in the chain. Yes this is as absurd as it sounds.
Re:Bored Ape conference attendees wake up with eye pain, vis... by wyldfire on Monday November 06, 2023 @10:19PM (#38172798)
It seems to me that cryptocoin adjacent things somehow attract well meaning people who just don't understand what parts of the technology are critical to its functionality. Maybe they understand one use case for a signature but don't really understand what signature is and more importantly what it isn't.

And sadly enough - several cryptocoins themselves are also this way.

I used to think cryptocoins were truly revolutionary. But the tech space is so rife with abuse, theft, scams that it doesn't feel worth it.

Re:Bored Ape conference attendees wake up with eye pain, vis... by astrange on Tuesday November 07, 2023 @12:00AM (#38173437)
People get upset when you do this because storing data on-chain is, possibly, infinitely expensive, since you can never get rid of it.
Re:Bored Ape conference attendees wake up with eye pain, vis... by thrwy_918 on Tuesday November 07, 2023 @12:22AM (#38173579)
>since you can never get rid of it

if you're an actual believer in NFTs, isn't that kind of the point?

Re:Bored Ape conference attendees wake up with eye pain, vis... by codetrotter on Monday November 06, 2023 @08:55PM (#38172175)
> you write a random string and save it on a blockchain, which becomes the NFT. From there, you can use a lookup table to map the NFT to a URL that links to an image that's stored on the owner's server

The way which they are mapped to images vary from NFT to NFT.

But let's look at Bored Ape Yacht Club specifically.

Collection https://opensea.io/collection/boredapeyachtclub

Pick a random bored ape. For example #1337.

https://opensea.io/assets/ethereum/0xbc4ca0eda7647a8ab7c2061...

From there we can see the bored ape Ethereum "smart contract"

https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118...

This contract is responsible for minting all of the original Bored Ape NFTs

Click on "contract". And then click "read contract".

Scroll down. There is a method named "tokenURI". It takes an integer as parameter. Let's query it with value "1337" (the id of the bored ape we are interested in knowing about).

Result:

ipfs://QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq/1337

Let's visit that URL via an IPFS gateway.

https://cloudflare-ipfs.com/ipfs/QmeSjSinHpPnmXmspMjwiXyN6zS...

It contains JSON data.

    {"image":"ipfs://QmWjXFUVNjavM4hDzXeQYGXGCXjV86mP7kPEaTeP5bohae","attributes":[{"trait_type":"Background","value":"Yellow"},{"trait_type":"Fur","value":"Dark Brown"},{"trait_type":"Clothes","value":"Bone Necklace"},{"trait_type":"Mouth","value":"Bored Unshaven"},{"trait_type":"Hat","value":"Horns"},{"trait_type":"Eyes","value":"Bloodshot"}]}
We make note of the IPFS URL for the image from here.

ipfs://QmWjXFUVNjavM4hDzXeQYGXGCXjV86mP7kPEaTeP5bohae

And visit that one via our chosen IPFS gateway.

https://cloudflare-ipfs.com/ipfs/QmWjXFUVNjavM4hDzXeQYGXGCXj...

So there you have it. Via the Bored Ape smart contract we retrieved the JSON data and image file for Bored Ape #1337 from IPFS.

Re:Bored Ape conference attendees wake up with eye pain, vis... by qingcharles on Monday November 06, 2023 @09:38PM (#38172507)
Retrieving that image relies on someone continuing to pin the file indefinitely, though, right?
Re:Bored Ape conference attendees wake up with eye pain, vis... by codetrotter on Monday November 06, 2023 @09:50PM (#38172584)
The neat thing about IPFS is that the IPFS URL is based on a hash of the file.

So having saved that file offline on my harddrive, I can later re-add it to IPFS.

    ipfs add Downloads/1337.png

    added QmWjXFUVNjavM4hDzXeQYGXGCXjV86mP7kPEaTeP5bohae 1337.png
     140.68 KiB / 140.68 KiB [=============================================] 100.00%
Notice that because I added the same file to my local ipfs, it got the same id as it had when I retrieved it.

QmWjXFUVNjavM4hDzXeQYGXGCXjV86mP7kPEaTeP5bohae

So, IPFS doesn't even require that the file is indefinitely pinned.

And if I have a public node, others can now once again retrieve the file using the same known id.

The person that re-adds it doesn't have to (nor can) specify the id of the file; that's calculated from the hash of it.

(Although, IPFS does also have a way to serve mutable data, so in those cases the id is not calculated directly from just a hash. But in the case of the image we looked at here we see that it was.)

The difference between needing to pin forever and merely needing to have a copy of the same file somewhere outside of IPFS which is then re-added to IPFS and gets the same ID is a fine distinction perhaps, but still an important one IMO.

And I think that even if all of the IPFS nodes that currently have a copy of the Bored Apes would go offline, there is probably someone out there who would notice that and for whatever reason be motivated to make all of the apes available again on IPFS with their same original id's that they had by re-adding the original files.

Re:Bored Ape conference attendees wake up with eye pain, vis... by qingcharles on Tuesday November 07, 2023 @12:13AM (#38173526)
Right, it's like a torrent in that way. I have dozens of torrents where I am waiting for that one guy to -- bless his soul -- open up his torrent client and seed the last 14 bytes.

I guess the best thing to do if you own an Ape is to store the image on your HDD and put a copy in a safe-deposit box, and then pin it yourself whenever you can.

Re:Bored Ape conference attendees wake up with eye pain, vis... by ceejayoz on Monday November 06, 2023 @09:18PM (#38172355)
{"trait_type":"Eyes","value":"Bloodshot"} is a particularly well-chosen example here.
Re:Bored Ape conference attendees wake up with eye pain, vis... by LelouBil on Tuesday November 07, 2023 @03:20AM (#38174440)
Thanks for the explanation, it makes a bit more sense that it is an ipfs URL.
Re:Bored Ape conference attendees wake up with eye pain, vis... by codetrotter on Tuesday November 07, 2023 @08:49AM (#38176649)
As mentioned though, it varies between different NFT projects. Some NFT projects lazily use Google Drive links etc instead. And then the files in the Google Drive could later be modified or deleted.

See for example https://web3isgoinggreat.com/?tech=nft&id=goblintown-nft-ima...

> Goblintown NFT images all changed to an illustrated middle finger in protest about royalties

Re:Bored Ape conference attendees wake up with eye pain, vis... by quickthrower2 on Monday November 06, 2023 @07:38PM (#38171477)
It could be. I don't know about the ERC for NFTs and I can't be bothered to read it, but in theory just store the IPFS address for the image.

In reality though it is an implementation detail. An NFT is just a coloured coin, and derives it's value from someone else thinking they can buy it and sell it on to someone else / OR some kind of bragging rights value, i.e. I can afford $100k on X useless thing (e.g. watch, gold plated iPhone etc.) so therefore I am rich.

Re:Bored Ape conference attendees wake up with eye pain, vis... by meepmorp on Monday November 06, 2023 @08:23PM (#38171870)
> I can afford $100k on X useless thing

Pretty sure the X useless thing was $44 billion.

Re:Bored Ape conference attendees wake up with eye pain, vis... by komali2 on Monday November 06, 2023 @07:30PM (#38171399)
Since finding this out a couple years back it's always my delight to see this realization happen for others.

We knew NFTs were stupid... we just couldn't comprehend how incredibly stupid they actually are.

Re:Bored Ape conference attendees wake up with eye pain, vis... by gryn on Monday November 06, 2023 @08:00PM (#38171666)
What baffling is how did they get this popular ? Plenty of stupid things to go around, why this specific one? Who was the marketing genius that convinced a critical mass to buy something worse than sand in the middle of the desert.
Re:Bored Ape conference attendees wake up with eye pain, vis... by anon84873628 on Monday November 06, 2023 @08:35PM (#38171998)
At a first level, similar phenomenon to why trading cards or any other collectible fads have their periods of excitement. Is digital beanie babies at all surprising?

Then there were also folks who wanted to use them as an open standard for, like, "metaverse assets" and whatnot. And while there are many different ways to solve that technically, you also have the blockchain proponents looking for any problem that blockchain can solve... So there is the added energy from that synergy as well.

Then I believe there are fairly serious businesses looking at NFTs for things like digital albums sales (or other ways to cultivate and monetize parasocial relationships) while disintermediating the traditional platforms.

Re:Bored Ape conference attendees wake up with eye pain, vis... by turok on Thursday November 09, 2023 @06:04AM (#38203508)
My opinion, I am not an expert by any means, I have only read the bitcoin whitepaper and written some very trivial blockchains to further my own understanding:

Blockchain and cryptocurrencies are impressive novel technology, they suit how they are used and work as a fungible token/currency. The underlying tech is impressive, like cryptography, and cannot (backdoors excepted) be broken for its intended purpose. Smart people who understand it recognized the potential and validity of the technology, and so it grew organically and became the phenomenon it is today. There is no technical gotcha, scams are another topic.

The general public's exposure was much more surface level and occurred after the tech had grown organically among technical folks. Now you pay with your CC on a familiar looking website, to buy something everyone says has value. It seems normal, and although you don't understand the underlying tech, you trust it is valuable. Lots of people get rich, lots of people lose money, but BTC remains valuable and the market remains. My elderly mother who is not technically literate is asking me how to invest.

After that, the general public has been conditioned to expect blockchain adjacent tech to be legitimate, they are feeling like they missed the gold rush but there is a new gold rush! NFTs! This time we skip the organic growth of a novel technology, adopted by smart people who understand the underlying tech. Now it is inorganic growth exploiting the crypto hype and pushed by hustlers. There is a legitimate use case for artists but that isn't what is driving the new mania.

This time there are massive technical gotchas (you have a link to a .jpg hosted on a server or servers, you don't own the copyright to anything). People find this out after the hype and massive adoption, if BTC never worked for its purpose it wouldn't have grown organically. NFTs have skipped that. There are torrents with every NFT pulled from these servers to highlight the lack of ownership, of technical control, I can't torrent your Bitcoins but I can download your stoned apes.

This is a long opinion, but it's why I think you see people find out after the fact just how flaky NFTs are.

Re:Bored Ape conference attendees wake up with eye pain, vis... by komali2 on Saturday November 11, 2023 @06:07AM (#38229242)
> There is a legitimate use case for artists but that isn't what is driving the new mania.

> This time there are massive technical gotchas (you have a link to a .jpg hosted on a server or servers, you don't own the copyright to anything).

It sounds like you've reconciled this, I'm curious how?

Re:Bored Ape conference attendees wake up with eye pain, vis... by turok on Monday November 13, 2023 @07:43AM (#38249521)
The use-case may be valid but the implementation doesn't necessarily facilitate it.

I'm stating in the first quote that there is an idea of artists selling their work, but that isn't what is driving the accelerated adoption.

In the second quote I point out some of the technical deficiencies, it is supposed to contrast the first. It doesn't reconcile.

The comment chain is on the topic of why these technical deficiencies are news to so many people, my opinion is that we skipped the scrutiny that BTC experienced and we experienced a gold rush.

Re:Bored Ape conference attendees wake up with eye pain, vis... by csomar on Monday November 06, 2023 @11:27PM (#38173259)
No. You just own a number in a smart contract.
Re:Bored Ape conference attendees wake up with eye pain, vis... by mattdesl on Tuesday November 07, 2023 @03:04AM (#38174338)
It’s typically an IPFS hash of an image that is stored on the blockchain, rather than a mutable URL. Some generative artworks will even store all of their code on-chain.

Ultimately, the chain is meant to be a ledger of transactions (like a decentralized Christie’s auction house maintaining provenance), not a storage layer.