Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amsanghi committed Oct 17, 2024
1 parent fb6a955 commit 08a377c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion blsSignatures/blsSignatures.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ func PrivateKeyFromBytes(in []byte) (PrivateKey, error) {

func SignatureToBytes(sig Signature) []byte {
buf := new(bytes.Buffer)
bls12381.NewEncoder(buf).Encode(sig)
err := bls12381.NewEncoder(buf).Encode(sig)
if err != nil {
panic("failed to serialize signature")
}
return buf.Bytes()
}

Expand Down

0 comments on commit 08a377c

Please sign in to comment.