0.0.8 • Published 2 years ago

sk-chain v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

A blockchain that can run on the Browser and the nodeJs

image

dev local

npm run dev
npm link

first import IPFS

  <script src="https://cdn.jsdelivr.net/npm/ipfs/dist/index.min.js"></script>

use npm link

npm link sk-chain

run node

import { createNode, DidJson, SKChain } from 'sk-chain';
export class SkChain {
  sk!: SKChain;
  started = false;

  init = async (account: DidJson) => {
    this.sk = await createNode({
      networkid: 'testnet',
      account,
    });
    this.started = true;
  };
}