From 08a377ccf2a2b5f7952e3e2dfdfff76a2860786a Mon Sep 17 00:00:00 2001 From: Aman Sanghi Date: Thu, 17 Oct 2024 22:58:50 +0530 Subject: [PATCH] fix lint --- blsSignatures/blsSignatures.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blsSignatures/blsSignatures.go b/blsSignatures/blsSignatures.go index b971df9918..2c5d15d66a 100644 --- a/blsSignatures/blsSignatures.go +++ b/blsSignatures/blsSignatures.go @@ -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() }