deriveTweakPubkey

fun deriveTweakPubkey(secretShare: BIP340SecretShare, derivationPath: IntArray, tweak: BIP340Tweak?): BIP340PublicKey

Derives a public key from an ECDSA secret share.

Returns the derived public key for a given BIP-32 non-hardened derivation path.

Return

The derived public key as a hex string

Parameters

secretShare

The secret share

derivationPath

The BIP-32 non-hardened derivation path to use for computing the public key