zcash-grant-system/blockchain/src/bin/genkey.ts

8 lines
264 B
TypeScript
Raw Normal View History

2018-12-28 15:24:46 -08:00
import { generateApiKey } from "../util";
const result = generateApiKey();
console.log("\nCopy both to your .env, and API_SECRET_KEY to your client environment.\n");
console.log(` API_SECRET_KEY=${result.key}`);
console.log(` API_SECRET_HASH=${result.hash}\n`);