Skip to content

chain-web/sk-chain

Repository files navigation

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;
  };
}

Tips

use node_extra_ca_certs_mozilla_bundle in NodeJs sk-chain node to connect https

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published