Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 2.22 KB

README.md

File metadata and controls

71 lines (50 loc) · 2.22 KB

Keyhub-Vault Monorepo

This is the monorepo for the Keyhub Vault component using Lerna.

List of Packages

Install IDE Plugins

  • Visual Studio Code IDE: Install ESLint and Prettier - Code formatter extensions via the sidebar.

Bootstrap Dependencies

npm install -g npm@latest # Recommended
npm install # This will also run lerna bootstrap

Reinstall All Dependencies

npx lerna clean --yes
npx lerna bootstrap

Running keyhub locally and using local blockchain

  1. edit epochBeginning and genesisAccountId in to match the local blockchain running /home/capt4ce/works/bcz/keyhub-vault/packages/keyhub-vault-web/src/conf/equinehub-dev/constants.js

  2. edit url, id and height of lastKnownBlocks mathching the local blockchain for example

module.exports = {
  url: 'https://localhost:20822',
  isTestNet: false,
  adminPassword: '',
  lastKnownBlock: {
    id: '12561374543856956095',
    height: '0',
  },
}
  1. change https://nxt1.vault.keyhub.app to your blockchain url in Caddyfile of keyhub
Content-Security-Policy "sandbox allow-same-origin allow-modals allow-scripts; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; manifest-src 'self'; style-src 'self'; img-src 'self'; media-src 'self'; font-src 'self'; frame-src 'none'; worker-src blob: data:; child-src blob: data:; script-src blob: 'self' 'sha384-rPMBYwDhb6zrv3/mO71SlMxpVbRnWUX4Brw4sLnlTGd3OcEFZjcRHS0L2yTUHq4Q'; connect-src 'self' https://nxt1.vault.keyhub.app; require-sri-for script style"
  1. compile the keyhub by running lerna bootstrap keyhub root directory

  2. run keyhub's caddy

  3. run the local blockchain

  4. use caddy for the local blockchain so that it can be accessed with https cady example for the local blockchain

localhost:20822 {
	proxy / localhost:2082/ {
		transparent
	}
	tls self_signed
}