|
|
|
@ -99,7 +99,7 @@ func (pk *SerializedPublicKey) FromLibBLSPublicKey(key *bls.PublicKey) error { |
|
|
|
|
// SeparateSigAndMask parse the commig signature data into signature and bitmap.
|
|
|
|
|
func SeparateSigAndMask(commitSigs []byte) ([]byte, []byte, error) { |
|
|
|
|
if len(commitSigs) < BLSSignatureSizeInBytes { |
|
|
|
|
return nil, nil, errors.New("no mask data found in commit sigs") |
|
|
|
|
return nil, nil, errors.Errorf("no mask data found in commit sigs: %x", commitSigs) |
|
|
|
|
} |
|
|
|
|
//#### Read payload data from committed msg
|
|
|
|
|
aggSig := make([]byte, BLSSignatureSizeInBytes) |
|
|
|
|