diff --git a/src/index.ts b/src/index.ts index 937300a..8253d89 100644 --- a/src/index.ts +++ b/src/index.ts @@ -140,7 +140,7 @@ export class SilentPayment { let key = ECPair.fromWIF(utxo.WIF).privateKey; if (key === undefined) { - continue; + throw new Error("No private key found for UTXO"); } // If taproot, check if the seckey results in an odd y-value and negate if so