This is the monorepo for the Keyhub Vault component using Lerna.
ESLint
and Prettier - Code formatter
extensions via the sidebar.npm install -g npm@latest # Recommended
npm install # This will also run lerna bootstrap
npx lerna clean --yes
npx lerna bootstrap
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
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',
},
}
https://nxt1.vault.keyhub.app
to your blockchain url in Caddyfile of keyhubContent-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"
compile the keyhub by running lerna bootstrap
keyhub root directory
run keyhub's caddy
run the local blockchain
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
}