tweakSecp256k1PrivateKey
tweakSecp256k1PrivateKey(
privateKey,tweak):Uint8Array
Defined in: signer.ts:149
BIP-341 private-key tweak: negate privateKey when its public key has an odd
Y (so the internal key is the even lift of its x-only form), then add tweak
mod n. Returns a fresh buffer — the caller zeroizes it after signing.
Parameters
Section titled “Parameters”privateKey
Section titled “privateKey”Uint8Array
Uint8Array
Returns
Section titled “Returns”Uint8Array