me-foundation/msigner

InvalidArgumentError: Invalid signature - no finalScriptWitness

Opened this issue · 3 comments

I can't get the sell psbt to verify.. the verify function spits out "InvalidArgumentError: Invalid signature - no finalScriptWitness"
I'm not sure how to make the wallet (I'm using xverse) create this finalScriptWitness on the input.. any help would be appreciated

It seems to me like the creation of a PSBT in this library is using the inscription tx as the input whereas it should be the current utxo that is associated with the inscription. Is this codebase out of date from what ME is using in production?

This library requires a fully running data store api that provides the fresh location utxo of the inscription.

https://github.com/magiceden-oss/msigner/blob/main/src/interfaces.ts#L21-L24

Hi @nothing0012, thanks for responding. Apologies, I should have been more explicit. I'm specifically talking about this input that is being used for the psbt https://github.com/magiceden-oss/msigner/blob/3de81d4aaac4d030b2fb2967d704a59070981777/src/signer.ts#L71

Shouldn't this tx hash be the current utxo holding the inscription instead of the inscription tx itself? Or is the ordItem.output the current utxo and I'm misunderstand that interface?