Giter VIP home page Giter VIP logo

viscoin's Introduction

Viscoin

Official Typescript implementation of the Viscoin protocol.

GitHub code size in bytes Discord

What is Viscoin?

Viscoin is an experimental digital currency that enables instant payments to anyone, anywhere in the world. Viscoin uses peer-to-peer technology to operate with no central authority: managing transactions and issuing money are carried out collectively by the network.

Coin Specifications

Specification Value
Mining Algorithm Argon2d (Argon2)
Block Time 60 seconds
Mining Reward 1000 VIS
Block Size 65536 bytes
Port 9333

Installation

Wallet

  1. Clone this repository. git clone https://github.com/viscoin/viscoin.git
  2. Change directory into viscoin. cd viscoin
  3. Install dependencies. npm i
  4. Compile typescript. npm run c
  5. Start using the wallet. node wallet

Running a node using

  1. Clone this repository. git clone https://github.com/viscoin/viscoin.git
  2. Change directory into viscoin. cd viscoin
  3. Start the node. docker-compose up -d
  4. docker exec -it viscoin sh
  5. Add the ip of another running node. node net

Mining

  1. Clone this repository. git clone https://github.com/viscoin/viscoin.git
  2. Change directory into viscoin. cd viscoin
  3. Install dependencies. npm i
  4. Compile typescript. npm run c
  5. Start mining. node miner

Important

If your system clock is off by more than 30 seconds the network will reject your blocks. Check with Time.is if you are synchronized with the official atomic clock time for any time zone.

Package usage

Installation

npm install viscoin

Example

Generating a wallet
import { Wallet, base58 } from 'viscoin'

const wallet = new Wallet()
console.log(base58.encode(wallet.address))
console.log(base58.encode(wallet.privateKey))
Building a transaction
import { Wallet, base58 } from 'viscoin'

const wallet = new Wallet()
const transaction = wallet.createTransaction({
    to: base58.decode('visC6571qoyNNzepeCLpy4EmhqD'),
    amount: '69',
    minerFee: '0.000000000000000001'
})
console.log(transaction)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

viscoin's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.