https://github.com/tekkac/cairo-quines
A set of quines written in Cairo
https://github.com/tekkac/cairo-quines
cairo quines self-replicating starknet
Last synced: 6 months ago
JSON representation
A set of quines written in Cairo
- Host: GitHub
- URL: https://github.com/tekkac/cairo-quines
- Owner: tekkac
- License: mit
- Created: 2024-10-08T18:08:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-24T16:59:02.000Z (over 1 year ago)
- Last Synced: 2025-01-21T21:36:07.994Z (over 1 year ago)
- Topics: cairo, quines, self-replicating, starknet
- Language: Cairo
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A few quines in Cairo
## What is a quine?
A [quine](https://en.wikipedia.org/wiki/Quine_(computing)) is a computer program that takes no input and produces a copy of its own source code as its only output.
## Usage
### Quine check
```bash
$ scarb run isquine src/your_quine.cairo
"It's a quine of 434 chars!"
```
## Leaderboard
| quine file name | size (chars)|
|:--------------- |------------:|
| formatted_quine.cairo| 676 |
| small_quine.cairo | 434 |
| smaller_quine.cairo | 326 |
## What else?
A few other programs that might exists yet are insanely hard to create.
- Create the **smallest** Cairo quine
- Create a quine in Cairo Zero (that is not the empty file)
- Create a Cairo program that outputs its own Sierra
- Create a Sierra quine
- Create a CASM quine
- Create a Cairo program that outputs its own STARK proof