Skip to content

Commit 1261982

Browse files
committed
Verify covenant member signature
1 parent 6a4b91f commit 1261982

File tree

5 files changed

+572
-13
lines changed

5 files changed

+572
-13
lines changed

internal/mocks/expected_interfaces_mocks.go

Lines changed: 283 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/services/expected_interfaces.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ type SignRequest struct {
1818
StakerUnbondingSig *schnorr.Signature
1919
// Staking output which was used to fund unbonding transaction
2020
FundingOutput *wire.TxOut
21-
// Script of the path which should be execute - unbonding path
22-
UnbondingScript []byte
2321
// Public key of the signer
2422
SignerPubKey *btcec.PublicKey
2523
}
@@ -33,14 +31,12 @@ func NewSignRequest(
3331
tx *wire.MsgTx,
3432
stakerSig *schnorr.Signature,
3533
fundingOutput *wire.TxOut,
36-
script []byte,
3734
pubKey *btcec.PublicKey,
3835
) *SignRequest {
3936
return &SignRequest{
4037
UnbondingTransaction: tx,
4138
StakerUnbondingSig: stakerSig,
4239
FundingOutput: fundingOutput,
43-
UnbondingScript: script,
4440
SignerPubKey: pubKey,
4541
}
4642
}

internal/services/remote_signer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (rs *RemoteSigner) SignUnbondingTransaction(req *SignRequest) (*PubKeySigPa
4141
req.UnbondingTransaction,
4242
req.StakerUnbondingSig,
4343
req.SignerPubKey,
44-
req.UnbondingScript,
44+
req.FundingOutput.PkScript,
4545
)
4646

4747
if err != nil {

0 commit comments

Comments
 (0)