Returns the compressed public key for this identity.
Sign the provided transaction inputs.
Transaction to sign
OptionalinputIndexes: number[]Optional input indexes to sign. When omitted, the implementation should sign every signable input.
Returns a signer session used for musig2 tree signing flows.
BIP-340 sign messageHash with aux_rand = 0, so the signature — and
anything derived from it — is reproducible from the key alone.
What lets a static wallet derive a swap preimage instead of storing one
(see wallet/contractSecrets.ts). Deliberately NOT signMessage, whose
schnorr branch draws a random aux_rand: a preimage derived from that is
unrecoverable, and the loss would only surface at claim time.
Export the private key as a hex string.
The private key as a hex string
Returns the x-only public key used by Taproot scripts.
StaticfromCreate a signing identity from a hex-encoded private key.
StaticfromCreate a signing identity from raw private key bytes.
StaticfromCreate a signing identity with a freshly generated random private key.
In-memory single key implementation for Bitcoin transaction signing.
Example