Official Typescript implementation of the Viscoin protocol.
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.
Specification | Value |
---|---|
Mining Algorithm | Argon2d (Argon2) |
Block Time | 60 seconds |
Mining Reward | 1000 VIS |
Block Size | 65536 bytes |
Port | 9333 |
- Clone this repository.
git clone https://github.com/viscoin/viscoin.git
- Change directory into viscoin.
cd viscoin
- Install dependencies.
npm i
- Compile typescript.
npm run c
- Start using the wallet.
node wallet
- Clone this repository.
git clone https://github.com/viscoin/viscoin.git
- Change directory into viscoin.
cd viscoin
- Start the node.
docker-compose up -d
docker exec -it viscoin sh
- Add the ip of another running node.
node net
- Clone this repository.
git clone https://github.com/viscoin/viscoin.git
- Change directory into viscoin.
cd viscoin
- Install dependencies.
npm i
- Compile typescript.
npm run c
- Start mining.
node miner
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.
npm install viscoin
import { Wallet, base58 } from 'viscoin'
const wallet = new Wallet()
console.log(base58.encode(wallet.address))
console.log(base58.encode(wallet.privateKey))
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)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.