diff --git a/modules/abstract-utxo/src/transaction/fixedScript/signPsbtWasm.ts b/modules/abstract-utxo/src/transaction/fixedScript/signPsbtWasm.ts index 6b61f8cedf..a42d3d4546 100644 --- a/modules/abstract-utxo/src/transaction/fixedScript/signPsbtWasm.ts +++ b/modules/abstract-utxo/src/transaction/fixedScript/signPsbtWasm.ts @@ -2,11 +2,13 @@ import assert from 'assert'; import { BIP32, bip32, ECPair, fixedScriptWallet, getWasmUtxoVersion } from '@bitgo/wasm-utxo'; -import { toWasmBIP32 } from '../../wasmUtil'; - import { BulkSigningError, InputSigningError, TransactionSigningError } from './SigningError'; import { Musig2Participant } from './musig2'; +function toWasmBIP32(key: bip32.BIP32Interface | BIP32): BIP32 { + return key instanceof BIP32 ? key : BIP32.fromBase58(key.toBase58()); +} + export type ReplayProtectionKeys = { publicKeys: (Uint8Array | ECPair)[]; };