nip60: small fixes.

This commit is contained in:
fiatjaf
2025-01-28 16:48:44 -03:00
parent edb2f782cf
commit 07b9b3e439
3 changed files with 4 additions and 60 deletions

View File

@@ -29,7 +29,7 @@ func (w *Wallet) ReceiveToken(ctx context.Context, serializedToken string) error
switch nut10Secret.Kind {
case nut10.P2PK:
swapOpts = append(swapOpts, WithSignedOutputs())
proofs[i].Witness, err = signInput(w.PrivateKey, w.PublicKey, proof, nut10Secret)
proofs[i].Witness, err = signInput(w.PrivateKey, proof)
if err != nil {
return fmt.Errorf("failed to sign locked proof %d: %w", i, err)
}