Skip to content

Commit

Permalink
chore: rollback to schnorr sig with pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Oct 10, 2024
1 parent 05a74c8 commit edeaf99
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clientcontroller/babylon.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (bc *BabylonController) reliablySendMsgs(msgs []sdk.Msg) (*provider.Relayer
func (bc *BabylonController) SubmitCovenantSigs(covSigs []types.CovenantSigs) (*types.TxResponse, error) {
msgs := make([]sdk.Msg, 0, len(covSigs))
for _, covSig := range covSigs {
bip340UnbondingSig := bbntypes.NewBIP340SignatureFromBTCSig(&covSig.UnbondingSig)
bip340UnbondingSig := bbntypes.NewBIP340SignatureFromBTCSig(covSig.UnbondingSig)
msgs = append(msgs, &btcstakingtypes.MsgAddCovenantSigs{
Signer: bc.mustGetTxSigner(),
Pk: bbntypes.NewBIP340PubKeyFromBTCPK(covSig.PublicKey),
Expand Down
2 changes: 1 addition & 1 deletion covenant/covenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func BuildCovenantSigs(pk *secp.PublicKey, resp SigningResponse) []types.Covenan
PublicKey: pk,
StakingTxHash: stkTxHash,
SlashingSigs: signatures.SlashSigs,
UnbondingSig: *signatures.UnbondingSig,
UnbondingSig: signatures.UnbondingSig,
SlashingUnbondingSigs: signatures.SlashUnbondingSigs,
})
}
Expand Down
2 changes: 1 addition & 1 deletion covenant/covenant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func FuzzAddCovenantSig(f *testing.F) {
PublicKey: covKeyPair.PublicKey,
StakingTxHash: testInfo.StakingTx.TxHash(),
SlashingSigs: covSigs,
UnbondingSig: *unbondingCovSig,
UnbondingSig: unbondingCovSig,
SlashingUnbondingSigs: unbondingCovSlashingSigs,
})
}
Expand Down
2 changes: 1 addition & 1 deletion types/sigs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ type CovenantSigs struct {
PublicKey *btcec.PublicKey
StakingTxHash chainhash.Hash
SlashingSigs [][]byte
UnbondingSig schnorr.Signature
UnbondingSig *schnorr.Signature
SlashingUnbondingSigs [][]byte
}

0 comments on commit edeaf99

Please sign in to comment.