Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
fix g2 multiexp pair data len
Browse files Browse the repository at this point in the history
  • Loading branch information
kilic committed Mar 18, 2020
1 parent a2d8506 commit 15f799a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api_decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ func (decoder *decoder) g22MultiExpRunner() (*g22MultiExpRunner, error) {
scalars := make([]*big.Int, numPairs)
points := make([]*pointG22, numPairs)
pointLen := modulusLen * 4
if decoder.remainingDataLen() != 2*(scalarLen+pointLen) {
if decoder.remainingDataLen() != numPairs*(scalarLen+pointLen) {
return nil, errors.New(ERR_MULTIEXP_NUM_PAIR_INPUT_LENGTH_NOT_MATCH)
}
for i := 0; i < numPairs; i++ {
Expand Down

0 comments on commit 15f799a

Please sign in to comment.