Skip to content

CodeChain-io/codechain-keystore-server

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date
Nov 29, 2019
Nov 29, 2019
Apr 30, 2019
Apr 30, 2019
Apr 30, 2019
Nov 28, 2019
Aug 22, 2018
Nov 29, 2019
Sep 7, 2018
Aug 22, 2018
May 20, 2019
Aug 22, 2018
Aug 23, 2018
Apr 30, 2019
Nov 29, 2019
Aug 22, 2018
Aug 30, 2018
Dec 3, 2022

Repository files navigation

CodeChain keystore server Build Status

CodeChain keystore server is a private key management server. It saves CodeChain's asset transfer address safely in a database. You should use this keystore server to save your private key safely in CodeChain SDK.

Installation

Prerequisite

  1. Install PostgreSQL

Initial Configuration

  1. Install dependencies with yarn install
  2. Execute the following SQL queries
CREATE DATABASE "codechain-keystore";
CREATE USER "codechain" WITH ENCRYPTED PASSWORD 'DATABASE_PASSWORD';
GRANT ALL PRIVILEGES ON DATABASE "codechain-keystore" TO "codechain";
  1. Create config/local.json with the following data
{
    "knex": {
        "connection": {
            "password": "DATABASE_PASSWORD"
        }
    }
}
  1. Update the database with yarn migrate
  2. Seed the database with yarn seed

Usage

  • yarn start to start a server
  • yarn load to load local keystore to database
  • yarn lint to lint the entire source code
  • yarn fmt to apply formatters
  • yarn migrate to migrate the database
  • yarn rollback to rollback the database
  • yarn seed to reset and seed the database

Check if the server is alive

You can send a ping to the server to check if it's up and running.

curl http://localhost:7007/ping

About

A private key management server for CodeChain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published