Skip to content
docs

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.

Uint8Array

Uint8Array

Uint8Array