psbt: Indicate which psbt inputs were signed
This commit is contained in:
1 parent
ba8b8d4e17
commit
b2e624cd52
10 files changed
+210
-172
No files matched your search
@@ -318,9 +318,13 @@ func TestSignPsbt(t *testing.T) {
|
||||
|
||||
// Let the wallet do its job. We expect to be the only signer
|
||||
// for this PSBT, so we'll be able to finalize it later.
|
||||
err = w.SignPsbt(packet)
|
||||
signedInputs, err := w.SignPsbt(packet)
|
||||
require.NoError(t, err)
|
||||
|
||||
// We expect one signed input at index 0.
|
||||
require.Len(t, signedInputs, 1)
|
||||
require.EqualValues(t, 0, signedInputs[0])
|
||||
|
||||
// If the witness stack needs to be assembled, give the caller
|
||||
// the option to do that now.
|
||||
tc.inputType.finalize(t, packet)
|
||||
|
||||
Reference in new issue
Block a user