/cryptoalgorthims

This repo comprises of implementation of various proof types using crypto algorithms. Proof of work is a protocol that has the main goal of deterring cyber-attacks such as a distributed denial-of-service attack (DDoS) which has the purpose of exhausting the resources of a computer system by sending multiple fake requests. Proof of stake will make the consensus mechanism completely virtual.

Primary LanguageGo

cryptoalgorthims

POW

Implimentataion of the Proof of work Algorithm using GO Lang

USAGE

  • spew pretty prints your blockchain in Terminal

  • godotenv read your environmental variables from a .env file in your root directory.

run cmd go run pow.go

call function using curl with a pulse rate of 120

POS

Implimentataion of the Proof of stake mining algorithm using GO Lang

USAGE

  • git clone https://github.com/sriharikapu/cryptoalgorthims.git

  • download the go package.

  • run the pos.go file go run pos.go

  • open the new terminal run "ns localhost:9000" for connecting the TCP server.

     Enter the stake  :(Stake to participate in validator pool)
     Enter the BPM :  (bit pulse per min)