{"id":21177313,"url":"https://github.com/codechain-io/codechain-keystore-server","last_synced_at":"2025-07-09T22:30:36.982Z","repository":{"id":36451521,"uuid":"145656370","full_name":"CodeChain-io/codechain-keystore-server","owner":"CodeChain-io","description":"A private key management server for CodeChain","archived":false,"fork":false,"pushed_at":"2023-01-11T01:47:47.000Z","size":1287,"stargazers_count":12,"open_issues_count":18,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-04T18:56:09.681Z","etag":null,"topics":["codechain","keystore","server"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeChain-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-22T04:32:36.000Z","updated_at":"2024-08-11T07:38:10.000Z","dependencies_parsed_at":"2023-01-17T01:45:22.088Z","dependency_job_id":null,"html_url":"https://github.com/CodeChain-io/codechain-keystore-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeChain-io/codechain-keystore-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-keystore-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-keystore-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-keystore-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-keystore-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeChain-io","download_url":"https://codeload.github.com/CodeChain-io/codechain-keystore-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-keystore-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504570,"owners_count":23618824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codechain","keystore","server"],"created_at":"2024-11-20T17:15:35.254Z","updated_at":"2025-07-09T22:30:36.505Z","avatar_url":"https://github.com/CodeChain-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CodeChain keystore server [![Build Status](https://travis-ci.org/CodeChain-io/codechain-keystore-server.svg?branch=master)](https://travis-ci.org/CodeChain-io/codechain-keystore-server)\n==========================\n\nCodeChain 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.\n\n## Installation\n\n### Prerequisite\n\n1. Install PostgreSQL\n\n### Initial Configuration\n\n1. Install dependencies with `yarn install`\n1. Execute the following SQL queries\n```sql\nCREATE DATABASE \"codechain-keystore\";\nCREATE USER \"codechain\" WITH ENCRYPTED PASSWORD 'DATABASE_PASSWORD';\nGRANT ALL PRIVILEGES ON DATABASE \"codechain-keystore\" TO \"codechain\";\n```\n1. Create `config/local.json` with the following data\n```json\n{\n    \"knex\": {\n        \"connection\": {\n            \"password\": \"DATABASE_PASSWORD\"\n        }\n    }\n}\n```\n1. Update the database with `yarn migrate`\n1. Seed the database with `yarn seed`\n\n## Usage\n\n- `yarn start` to start a server\n- `yarn load` to load local keystore to database\n- `yarn lint` to lint the entire source code\n- `yarn fmt` to apply formatters\n- `yarn migrate` to migrate the database\n- `yarn rollback` to rollback the database\n- `yarn seed` to reset and seed the database\n\n### Check if the server is alive\n\nYou can send a ping to the server to check if it's up and running.\n\n```\ncurl http://localhost:7007/ping\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Fcodechain-keystore-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodechain-io%2Fcodechain-keystore-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Fcodechain-keystore-server/lists"}