Share your repls and programming experiences

← Back to all posts
Eggcoin - a cryptocurrency! Mine coins, and make transactions!
h
generationXcode

This is a cryptocurrency. Fork the code and follow the readme :

When first using this software you MUST:

  • delete blockchain.json in the root directory
  • go to personal_data.json and change details accordingly
  • run program once, after the terminal says Quit server with CONTROL C, click on the stop button and run once again.
  • if you dont do the above steps, your peer will not be added to the network and your coins won't be recognised by everyone.

what is a cryptocurrency?

  • honestly, I have like no clue. It is a bunch of coins that you give to someone else. It is like actual currency, except you dont need a bank or anything to make transactions. Think of cryptocurrency like digital cash (not the number on bank screen, actual physical notes and stuff).
  • Lets say you want to buy some eggs. You go to the store and give them some cash. The cashier checks whether the notes you give him/her are fake or real. If they are real, the transaction is accepted and you get the eggs.
  • wait no. that isnt what a cryptocurrency is. I forgot what I was typing out. A better analogy would be if you want some eggs, you give the cash to the cashier, everyone alive gets a copy of that note, everyone alive checks whether that note is real or fake. If the majority think it is real, you get the eggs. Now this note giving is a "transaction". To protect these transactions from being tampered with, we have blocks to keep these transactions in. Each time you mine a block, you do some work to secure it (this is called mining). If someone else wanted to tamper with a transaction in that block, they would have to do the work again, and since all the blocks after it are linked to that block, the person would then have to redo the work for every single block after that.

how do i mine?

  • just follow the instructions I gave at the top and run the program, open the link and click on the mine link. The mining can take very long.

how do I make a transaction?

  • click on the make transaction link and you will be greeted by a form. ask your friend for their public key. They will give you two parts of the key. Place the long part in the first public key input and the short part in the second. In the amount section, place a whole number of coins you want to give the person.

how do i find my public key?

  • bruh. Just click on the link to get it.

other stuff

  • you guys tell me what to write here

stop

spam

mining

If you all are having issues with forking, please contact me, I'll fix it all for you.

troubleshooting

  • issue solution number 1 - anything isnt working? just stop the repl and restart
  • if it takes too long to start, it is because there are too many peers. easy fix - delete all peers except eggcoin.generationxcode.repl.co in peers.json. Easier fix, contact me and add me to the multiplayer repl
  • if it says lol die, it is completely normal

announcements

  • if u want version 2, please say so.
  • I am sorry for the bad styling
  • want me to explain in depth how to make a cryptocurrency?
  • I made the difficulty low, so it uses less resources and no actual money stuffs here pls
  • can you all try not to mess with it?
  • if you find the server randomly crashing, it's me. You all do all sorts of stuff to mess it up, i have to try and fix the code. This is the result of that salvaging
  • I'm sleeping now, so any errors ocurring are all your fault and i'll fix them when i get up. Not that the system is perfectly working without all your mixing in it
  • if you have ideas about design in css or anything, contribute PLEASE https://github.com/generationzcode/socoolblockchain
  • if you want to run this and use my coins and play around with my node, use this link - https://replit.com/@generationXcode/Eggcoin
    I want to see the run metrics
  • https://replit.com/talk/learn/How-I-made-a-cryptocurrency-Eggcoin-and-how-you-can-part-1/140217 is the tutorial where you can learn more about how to make a blockchain.
  • ok version 2 wont have any protocol changes, I would have to force everyone to follow them, I'll make a few more pages to show the blockchain and mining process and then I'm done with the project, unless a security issue occurs.
  • great job guys, now we have too many peers. the program is running real slow. I'll update the protocols later.
  • btw keep a backup of your keys from keys.json. If the keys reset (ur balance becomes 0, u can paste the old keys back
  • great job whoever you are for RUINING the blockchain
  • large issue guys. Our cryptocurrency servers dont have enough memory to handle really large files so we need a solution for this fast. The coin will otherwise fail. Log your answers in comments section mine is ijson
  • i will fix this after im done with my physics practice paper. Then I will fix the network
  • high probability of blockchain not working. currently trying to make version 2, that is better than this one. use, but it might not work.
  • you people have spent all my eggcoin. try to mine some.
  • I am rich. make me richer by mining for me

I have fixed this to a point at which it is usable. Please have fun. If you run into any errors, dont hesitate to make issues on github like many are right now and CONTRIBUTE. GUYS YOU HAVE TO CONTRIBUTE

if you operate a node, please keep pulling from the version control.

20 comments that i should remake it and i will. It will be better then. This was my first ever blockchain so it isnt very good.

version 2 was made and u all got to see it. there was a small problem however, that has been fixed. Please go on and spend all your money for stupid things now

Voters
extendedlungs
DeadWither
dudeactualdev
oscarmandel
crumb
SmokeyPig11
nadir92
LucyNichols
Marcelysts
DepthStrider
Comments
hotnewtop
ChopSueyMaster

Bitcoin, Dogecoin, and now Eggcoin,

just waiting for potatocoin

generationXcode
CyberHacker101

dude forget about potatocoin wat about the great Irish SPUDACOIN?!??!? Thats right ma lads. @ChopSueyMaster

tussiez
foodandmoarfood

hmmmmmmmmm
yes

ChopSueyMaster

Well, hopefully, this doesn't become a reality because this is not clearly what our ancestors expected from this generation. @foodandmoarfood

nameless12321

@ChopSueyMaster Moguscoin ඞඞඞඞ

Whippingdot

im waiting for Whipcoin @ChopSueyMaster

StringentDev

@Whippingdot and i'm waiting for neyneyCoin

iocoder

@Whippingdot ...IOcoin...

xXToluwaXx

@ChopSueyMaster the true coin we need is pogcoins

octopyBot

@xXToluwaXx OCTOCOIN! github is with me on this one

Fluffik

@ChopSueyMaster :) And maybe then replcoin?

generationXcode
Fluffik
Whippingdot

I HAVE CHOSEN THE ULTIMATE FIVE COINS - OCTOCOIN, REPLCOIN, WHIPCOIN, SQUIDCOIN, AND FLAMINHOTVALDEZCOIN @ChopSueyMaster

Chhatrapati02

@ChopSueyMaster lol potatocoin

Rowaid881
CodingElf66

@ChopSueyMaster I vote CodeCoin

taakoiscool

@ChopSueyMaster I would Invest in potato coin heavily.

gbehlcode

@ChopSueyMaster It'll all change when the fire nation attacks.

gbehlcode

@ChopSueyMaster what about Burgercoin?

CoderKid123
WolfBoy2534

@CyberHacker101
Lol how about potaocointo

generationXcode

gosh i finally fixed this thing. So none of these altcoins anymore smhsmhsmhmsmhsmhmshmsmhsmh

CyberHacker101

yeah lol @WolfBoy2534

programmeruser

Note: crypto mining is against Replit ToS

generationXcode

@programmeruser it is????

generationXcode
generationXcode

@programmeruser ima read up and see if this much is alr. cus it's a low difficulty

generationXcode
RayhanADev

@generationXcode crypto mining is against the Replit Tos

@programmeruser I'm pretty sure that only applies to like, mining Bitcoin and stuff on Replit machines.

amasad

@programmeruser educational use is okay which this is

ch1ck3n
tussiez
[deleted]

@programmeruser
i can imagine what would happen if machines were windows

figglediggle

@programmeruser don't snitch

Whippingdot

bruh why is your task bar at the top of your screen? @generationXcode

generationXcode

i like it like dat @Whippingdot

octopyBot

because he's weird like that @Whippingdot. even uses vsCode when atom.io is clearly superior.

Whippingdot

no atom.io is worse cause it has a smaller community, meaning less extensions. Also you can't customize the top bar in atom meaning you are stuck with the white menu of all the options (I am talking about how electron puts that bar at the top on windows). In VSCode you can move that bar around. VSCode is clearly [email protected]

CodingElf66

@programmeruser It is? I didn't know, and where does it say that? Just wondering.

samfierycreeper

I don't want to get super involved on this conversations, but atom.io is amazing.

zplusfour

the website not loading... >:(

generationXcode

@zplusfour yeah the server is starting up. i had to restart it.

zplusfour

@generationXcode okkk
and I'm interested in this

FrancisPan

https://replit.com/site/terms prohibited actions 18.

generationXcode

@FrancisPan yeah, For this I made the POV difficulty really really low and the people said that it is ok since it educational use

FrancisPan
JamesGordon1

hey, i apparently was doing it wrong so it made a invalid link so you can delete this one: "http://JamesGordon1.Atomic.repl.co",

generationXcode

@JamesGordon1 dont worry, invalid links dont matter a lot. The version 1 itself is really buggy, so I'll revise the code and make it better and make use of django databases instead of using json files. The whole blockchain currently is in a mess, but you can still use it. Dont worry. oh god i just unloaded all the problems on u lol. have a great day.

JamesGordon1
xfinnbar

@generationXcode django database is file-based so it doesn't work on replit properly.

generationXcode

@xfinnbar yeah, that is an isue right now. contribute on github of you see any other probs :)

xfinnbar

@generationXcode I recommend MongoDB (through atlas, their free cloud database). It works well on replit.

generationXcode

@xfinnbar thanks for the suggestion, but i just finished up on using the django sql db. You seem to know a lot about replit. Can you just see the code if it is alright? if not, no problemo. currently testing and so many errors lol

RahulChoubey1

@generationXcode I mistakenly made 2 false URLs.

JamesGordon1

@RahulChoubey1 can yall do this in a different comment section so I don't get your guys notify

generationXcode

sure thing @JamesGordon1

7ih

you should probably use a (sql) database instead of using json files. it will make it faster to load, and easier to modify data.

generationXcode

@7ih yeah, that was a good insight. I'll do that.I wonder how to transfer the blockchain tho, I mean i can, but one block at a time I guess

Kudos

@7ih

NoSQL (like Mongodb) would actually be much more performant for this project than SQL (see https://softwareengineering.stackexchange.com/a/175546)

generationXcode

@Kudos damn really? if you want, please contribute here. I have no idea how to use mongodb. I tried once. But in most part i dont know. Once we are done with this v2 update, we can work on more performance and scaling it up

Kudos

@generationXcode

The codebase is big, I'm not familiar with Django, and I've only used databases with Node.js, but I'll see what I can do :)

Kudos

Maybe later on the codebase of Eggcoin could transitioned to Rust, and the whole project would be 🔥 fast

generationXcode

@Kudos yeah.

generationXcode

@Kudos after v2 it is pretty much entirely up to the community to do whatever they want.

DannyOhaya

Make Version 2

Korbindev

how do I sell it for money

DeadWither

I could have hacked the coins if you used py in-built db

generationXcode

@DeadWither doesnt matter if you hacked it or not. Even if you did, the peers are there to secure the chain. decentralised means you have to hack every single peer to hack the chain

CodingEpic

Broken?

generationXcode

@EpicCoding1 perhaps, I have abandoned this and moved on to studies and another project, It was working at the start but uk the security of p2p servers probably isnt top notch and caused it to break. I cant check rn, I'll work it out later. Thanks for reporting it

CodingEpic
generationXcode

@CodingEpic fixed it

DepthStrider

what is blocked_urls.json for?

generationXcode

@DepthStrider when i began this blockchain, someone did very bad stuff on it that ruined it and that bad stuff spread accross the peers since they are all communicating so I just blocked all the peers and updated the software

DepthStrider

@generationXcode ah. I am concerned though because when I tried to run it then forked it right after my url was in the blocked urls list. :|

generationXcode

@DepthStrider just change the repl name in the file and in the repl and will be unblocc

qianyy

taking forever to load...

korrykatti

can i make my own crypto using this ?

generationXcode
korrykatti

great i would learn python now @generationXcode

generationXcode

@korrykatti lol my school is actually teaching python rn. Python is an addiction, I'm dying to move to julia

JackNorwood

You should add a button that takes you back to the previous page and also, how much is Eggcoin worth?

generationXcode

@JackNorwood worth nothing

JackNorwood
ArmorCodedItLol

how do you make a crypto? cause i want ppl to have armor coin lol.

Dart

cool

JULIODIAZ1

it just keeps on saying this ;-;

generationXcode

@JULIODIAZ1 these messages are alright. a lot of the peers actually are indeed offline, so these messages show up. no worries

JULIODIAZ1

it kept doing that for like 30 mins straight and a window didnt open
@generationXcode

generationXcode

@JULIODIAZ1 Too many inactive peers :(

octopyBot

man's gonna be rich like satoshi nakamoto lol

generationXcode

@octopyBot just as rich as the rest of you :)

bigchungusmc

"personal_data.json" is not very specific. what is "repl_name" and "username"

generationXcode

@bigchungusmc the name of the forked repl and your username

XanderK20

is this real, like actual money? I hope it doesn't take up too much electricity to mine it like other cryptocurrencies

generationXcode

@XanderK20 I made it so that the difficulty is really low. This is causing a lot of problems for the security of the blockchain, but less electricity used

XanderK20

@generationXcode Cool! I'm sorry for the security problems though. Hopefully there's a way to fix those too!

Whippingdot

us mortals do not understand your advanced technology, oh great one

generationXcode

@Whippingdot i made a tutorial on it in the replit tuorials lol

NotMrMan

could you add a dark mode to the site? my eyes are burning

FrancisPan

It takes a really long time to mine a block

rexhall

I can't get it to work cool idea and for the people who got it congrats

[deleted]

@generationXcode
It showed this for a long time:

Then it showed this pls get rid of the lols (lol):

And then i stopped the repl and ran it again, and got this:

and then it just continuously printed out this statement:

could you pls help me and probably get rid of all the lols in the error lol

generationXcode

@BlackStarPY some peers are older so this happens. change personal data.json. I'll work on fix 1 hour a day. if u have a solution, pls contribute:)

[deleted]

@generationXcode ok thx and ill try to contribute

RahulChoubey1

it's connecting the peer but not rendering the website smh

zplusfour
generationXcode
zplusfour

@generationXcode hm so Eggcoin exists...

mollthecoder

chmod +x ./pog.sh && sudo bash ./pog
Installing dependencies...

  • Epic...
  • Poggers...
  • Cool...
mollthecoder

Anyone want 100 free eggcoin (Not that it wasn't free anyways)

DeadWither
StringentDev

@generationXcode just creating MINT rn because why not. Mint will have a central server with a dashboard to add NODES. (it will have a login and an API) it is made in nodejs and is... VERY process intensive

generationXcode

@StringentDev cool. what is MINT?

StringentDev

@generationXcode a crypto currency. Also there are some aspects of finiance that you must accept in order to continue:

  • A currency only has value because we "agree" it does.
  • The relative value of your currency will fluctuate based on distibution and amount so you want to control how easy it is to gain a coin.
  • The system must be secured otherwise malicious users can MOVE the coins to their account.

You can help out if you want :D

generationXcode

@StringentDev cool. Thanks! I didnt know that. You surely know a lot about econimics! I can respect that. :)

StringentDev

@generationXcode Business studies :D and simple logic. When you look at lets say a new country, they have to decide about WHAT should be the currency. Raman noodles, Eggs, A piece of silver, gold, chickens and really anything could be.

Basically id argue it is not just a form of bartering, but it is bartering

RahulChoubey1

@StringentDev Exactly. Measuring based on a central value makes it easier to compare two objects we haven't relatively measured yet.

StringentDev

@RahulChoubey1 yep, by that logic of both of ours, we can measure it's value based on rarity and the flow of currency (cough GameStop for example) once we do the relative calculation to a currency like the Great British Pound (GBP) or the United States Dollar (USD), we can then use that converted currency to convert to other currencies as well.

RahulChoubey1

@StringentDev PERFECTLY stated. Except the whole "rarity" thing is only half-true; that's idealistic. Price values are arbitrary.

StringentDev

@RahulChoubey1 well yeah but it is all we have right now.