project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

Gogh

Unleashing a new era for artisting ownership with efficient on-chain generative art

Gogh

Created At

ETHGlobal London

Winner of

trophy

Arbitrum -  Stylus Project 2nd place

trophy

Arbitrum - Qualifying Arbitrum Submissions

Prize Pool

Project Description

This project is a Proof-of-Concept (POC) showcasing the potential of Arbitrum Stylus for the on-chain generation of artistic algorithms written in Rust. It demonstrates the ability to leverage on-chain WASM's power for computations while maintaining full interoperability with the Ethereum Virtual Machine (EVM) on Arbitrum.

The core innovation lies in utilizing Arbitrum Stylus. This allows the artistic algorithms, traditionally implemented off-chain, to be written and executed directly on the Arbitrum blockchain using Rust. Our modular code and separation between minting, art generation, and algorithm ensures that we can convert this project into what it was meant to be - a tool that provides an end-to-end interface such that artistic developers can use our template to develop algorithms in any WASM language and plug it into our front-end, which will directly bring their innovation and art on-chain. This opens doors for novel applications in the on-chain world and for the first time, the ownership of an art piece can be tracked from its inception. The potentials of an art economy on-chain with fully verified origination are endless.

How it's Made

Here's a breakdown of how you might have built this project using Arbitrum Stylus, focusing on the technical details:

Building Blocks Arbitrum Stylus: This is the core technology enabling on-chain Rust programming. It provides a safe and secure environment for writing and deploying Rust smart contracts on the Arbitrum blockchain. Fastrand: This Rust crate offers a cryptographically secure random number generator, crucial for generating randomness within the algorithms, and essential for artistic variation. Frontend: Wagmi, JavaScript, React Backend: Rust

Putting it Together: Algorithm Implementation: Each artistic algorithm was implemented in separate Stylus contracts written in Rust, creating a modular approach and easily abstractable for future growth of the project into an end-to-end interface for artistic developers and artists alike. Random Number Generation: Fastrand was integrated into each contract to provide a reliable source of pseudo-randomness for calculations within the algorithms. On-chain Computations: The algorithms leverage Rust's capabilities to perform geometric calculations (line intersections, circle packing logic, Voronoi distance calculations) directly on-chain. On-chain storage: Unlike most NFTs, we took advantage of the cheap memory access and efficient procession of Stylus to bring the XML on-chain! This approach enables the possibility of real art on-chain and many other applications. Never feasible before on an EVM chain, our highlight of this ability of Stylus is a key innovation. All the NFTs rendered in our front end are rendered directly from the blockchain!

background image mobile

Join the mailing list

Get the latest news and updates