This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const log = console.log; | |
import { hex } from '@scure/base'; | |
import * as btc from '@scure/btc-signer'; | |
import { secp256k1, schnorr as secp256k1_schnorr } from '@noble/curves/secp256k1'; | |
import { bech32 } from '@scure/base'; | |
const privKey = secp256k1.utils.randomPrivateKey(); | |
//const privKey = hex.decode(''); | |
log('privKey', hex.encode(privKey)); |
OlderNewer