refactor: psbt uxui, closes #3849

This commit is contained in:
fbwoolf
2023-06-30 11:32:34 -05:00
committed by Fara Woolf
parent 848e0fcb46
commit e48726e6a5
71 changed files with 1753 additions and 901 deletions

View File

@@ -84,6 +84,7 @@ function buildTestNativeSegwitPsbtRequestWithIndexes(pubKey: Uint8Array): PsbtRe
tx.addInput({
index: 0,
txid: '5be910a6557bae29b8ff2dbf4607dbf783eaf82802896d13f61d975c133ccce7',
sighashType: 1,
witnessUtxo: {
amount: BigInt(1268294),
script: p2wpkh.script,
@@ -104,7 +105,7 @@ function buildTestNativeSegwitPsbtRequestWithIndexes(pubKey: Uint8Array): PsbtRe
const psbt = tx.toPSBT();
return { signAtIndex: [0, 1], hex: bytesToHex(psbt) };
return { signAtIndex: [0, 1], hex: bytesToHex(psbt), allowedSighash: [2] };
}
function buildTestTaprootPsbtRequest(pubKey: Uint8Array): PsbtRequestOptions {