Skip to content

Commit

Permalink
fix: throw error if private key is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains authored and Overtorment committed Aug 24, 2023
1 parent 33faf54 commit 4643fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4643fa0

Please sign in to comment.