Files
liquid-stacking/scripts/generate-secret.ts
fiftyeightandeight ce69b46641 chore: license header
2024-03-14 22:31:45 +08:00

13 lines
298 B
TypeScript

// SPDX-License-Identifier: BUSL-1.1
import { makeRandomPrivKey } from "@stacks/transactions";
import { bytesToHex } from '@stacks/common';
const key = makeRandomPrivKey();
key.compressed = true;
key.data = new Uint8Array([...key.data, 1]);
console.log(key);
console.log(bytesToHex(key.data));