Hello,
I have put together the cryptopunks gem v1.0 [1a][1b] that incl. a
command line tool that
lets you mint your own 24×24 pixel punk images off chain
from the True Official Genuine CryptoPunks™ sha256-verified original
10 000 unique character collection;
incl. 2x/4x/8x zoom for bigger sizes.
Example from the readme:
Use the `punk` (or `cryptopunk`) command line tool. Try:
$ punk -h
resulting in:
Usage: cryptopunk [options] IDs
Mint punk characters from composite (./punks.png) - for IDs use 0 to 9999
Options:
-z, --zoom=ZOOM Zoom factor x2, x4, x8, etc. (default: 1)
-d, --dir=DIR Output directory (default: .)
-f, --file=FILE True Official Genuine CryptoPunks™
composite image (default: ./punks.png)
-h, --help Prints this help
Now let's give it a try. Let's mint punk #0, #2890, and #8219:
$ punk 0 2890 8219
printing:
==> reading >./punks.png<...
>ac39af4793119ee46bbff351d8cb6b5f23da60222126add4268e261199a2921b<
SHA256 hash matching
✓ True Official Genuine CryptoPunks™ verified
==> (1/3) minting punk #0; writing to >./punk-0000.png<...
==> (2/3) minting punk #2890; writing to >./punk-2890.png<...
==> (3/3) minting punk #8219; writing to >./punk-8219.png<...
And voila!
And, Yes, you can use cryptopunks in your own scripts too.
Example from the readme.
require 'cryptopunks'
# step 1: read True Official Genuine CryptoPunks™ composite image
punks = Punks::Image.read( './punks.png' )
# step 2: start minting
punks[0].save( './punk-0000.png' )
punks[2890].save( './punk-2890.png' )
punks[8219].save( './punk-8219.png')
# or change the zoom factor
punks.zoom = 4 # use x4
punks[0].save( './punk-0000x4.png' )
punks[2890].save( './punk-2890x4.png' )
punks[8219].save( './punk-8219x4.png')
Happy minting. Cheers. Prost.
PS: New to Crypto Punks?
See the Awesome CryptoPunks Bubble (Anno 2021) - Modern 24×24 Pixel
Crypto Art on the Blockchain page [2].
[1a] blockchain/cryptopunks at master · rubycoco/blockchain · GitHub
[1b] cryptopunks | RubyGems.org | your community gem host
[2] GitHub - openblockchains/awesome-cryptopunks-bubble: Awesome CryptoPunks Bubble (Anno 2021) - Modern 24x24 Pixel Crypto Art on the Blockchain since 2017 - 10 000 Unique Collectible Characters Generated Algorithmically ++ Bonus: Inside the CryptoPunksMarket Contract Service