Skip to content

Commit

Permalink
Merge pull request #46 from babylonchain/verify-covenant-members-sigs
Browse files Browse the repository at this point in the history
Verify covenant member signature
  • Loading branch information
KonradStaniec authored Jun 24, 2024
2 parents 6a4b91f + 1261982 commit 8d4a262
Show file tree
Hide file tree
Showing 5 changed files with 572 additions and 13 deletions.
283 changes: 283 additions & 0 deletions internal/mocks/expected_interfaces_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions internal/services/expected_interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ type SignRequest struct {
StakerUnbondingSig *schnorr.Signature
// Staking output which was used to fund unbonding transaction
FundingOutput *wire.TxOut
// Script of the path which should be execute - unbonding path
UnbondingScript []byte
// Public key of the signer
SignerPubKey *btcec.PublicKey
}
Expand All @@ -33,14 +31,12 @@ func NewSignRequest(
tx *wire.MsgTx,
stakerSig *schnorr.Signature,
fundingOutput *wire.TxOut,
script []byte,
pubKey *btcec.PublicKey,
) *SignRequest {
return &SignRequest{
UnbondingTransaction: tx,
StakerUnbondingSig: stakerSig,
FundingOutput: fundingOutput,
UnbondingScript: script,
SignerPubKey: pubKey,
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/remote_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (rs *RemoteSigner) SignUnbondingTransaction(req *SignRequest) (*PubKeySigPa
req.UnbondingTransaction,
req.StakerUnbondingSig,
req.SignerPubKey,
req.UnbondingScript,
req.FundingOutput.PkScript,
)

if err != nil {
Expand Down
Loading

0 comments on commit 8d4a262

Please sign in to comment.