Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 768 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 768 Bytes

Blockchain Example

Simple projet based on Bitcoin ₿ in 100 Seconds // Build your Own Blockchain video from Fireship

📃 Requirements and Instalation

  • NodeJs v15
#Clone this repository
$ git clone https://github.com/saviollage/simpleBlockchain

# Enter Directory:
$ cd simpleBlockchain

# Install the dependencies:
$ npm ci

# Running app:
$ npm start

📝 Edit

Feel free to edit this basic implementation an then see how the chain works

// Basic implementation

const savio = new Wallet();
const satoshi = new Wallet();

satoshi.sendMoney(50, savio.publicKey);
savio.sendMoney(25, satoshi.publicKey);

console.log(Chain.instance);