mirror of
https://github.com/zhigang1992/liquid-stacking.git
synced 2026-01-12 17:23:23 +08:00
13 lines
298 B
TypeScript
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));
|
|
|