Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blockchain-javascript

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blockchain-javascript - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

3

.vscode/settings.json
{
"python.formatting.provider": "autopep8"
"python.formatting.provider": "autopep8",
"git.ignoreLimitWarning": true
}

@@ -11,6 +11,8 @@ // Difficuly of mining

// mining nodes
const NODE_ADDRESSES = [];
// get localhost address
const localhost = require('child_process').execSync("ifconfig | grep inet | grep -v inet6 | awk '{gsub(/addr:/,\"\");print $2}'").toString().trim().split("\n");
const NODE_ADDRESSES = [localhost];
module.exports = { DIFFICULTY, INITIAL_BALANCE, MINING_REWARD, NODE_ADDRESSES };
module.exports = { DIFFICULTY, INITIAL_BALANCE, MINING_REWARD, NODE_ADDRESSES };
{
"name": "blockchain-javascript",
"version": "1.0.5",
"version": "1.0.6",
"description": "javascript implementation of private / public blockchain",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,12 +0,18 @@

# Learn Blockchains by Building One
# blockchain-javascript
[![Build Status](https://travis-ci.org/dvf/blockchain.svg?branch=master)](https://travis-ci.org/dvf/blockchain)
This is the source code for my javascript implementation on [Building a Blockchain](https://medium.com/p/117428612f46).
Blockchain built in private / public in javascript.
This was the source code for my javascript implementation on [Building a Blockchain](https://medium.com/p/117428612f46).
It is now advancing with additional functionalities I add in(private / public key, modulization, tutorials).
## Installation
1. Make sure [node.js 7.2+](https://nodejs.org/en/) is installed.
2. Install [npm](https://www.npmjs.com/) and packages in package.json file.
2. Install [npm](https://www.npmjs.com/) and packages in package.json file.
```

@@ -13,0 +19,0 @@ $ npm install -g blockchain-javascript

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc