TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Exporting image assets from ethereum smart contract with solidity

50 pointsby dezmouabout 4 years ago

4 comments

ghayesabout 4 years ago
The other common approach here (for non-generative images) is to store the Sha3 hash of an image and then simply require that someone, somewhere has the actual data. You could also pass the image as a LOG message which is significantly cheaper (3 gas per byte, versus 20,000 gas per 32-bytes to store data) which means if you can read older chain blocks, you can ensure you have the underlying data.
评论 #26605800 未加载
评论 #26621663 未加载
xrdabout 4 years ago
Isn&#x27;t this an interesting example where you could do fun things by writing the image data into a cheap blockchain where the cost isn&#x27;t high (making it immutable) but then associating it with the SHA or encrypted private key on the blockchain where the item is sold?<p>The art goes on the dogecoin, the purchase happens on ethereum.
评论 #26608287 未加载
Animatsabout 4 years ago
How much &quot;gas&quot; does it cost to store data in the Etherium blockchain? The entire Etherium blockchain is about 180 GB.
评论 #26604552 未加载
评论 #26604834 未加载
评论 #26608693 未加载
评论 #26604139 未加载
raidicyabout 4 years ago
What about storing a base64 string and decoding it in the client? Would an arbitrary base64 string fit in a 256 variable?
评论 #26604334 未加载