I’m attempting to assemble a PSBT transaction however am getting caught at inserting the validator
or validateSigFunction
into the .validateSignatureOfInput
From the docs I see the beneath:
const validator = (
pubkey: Buffer,
msghash: Buffer,
signature: Buffer,
): boolean => ECPair.fromPublicKey(pubkey).confirm(msghash, signature);
I’m having troubles acquiring the msghash
and signature
variables although. How do I receive these variables from my transaction I’m setting up?
Any help?