batchVerifyMinPk method

  1. @override
bool batchVerifyMinPk({
  1. required List<List<int>> publicKeys,
  2. required List<List<int>> messages,
  3. required List<Bls12G1Signature> signatures,
  4. List<int>? dst,
})
override

One message/signature per min-pk key; all three lists must share non-zero length. Returns true on all-valid, false otherwise, throws on length mismatch or crypto failure.

Implementation

@override
bool batchVerifyMinPk({
  required List<List<int>> publicKeys,
  required List<List<int>> messages,
  required List<Bls12G1Signature> signatures,
  List<int>? dst,
}) {
  if (publicKeys.isEmpty ||
      publicKeys.length != messages.length ||
      publicKeys.length != signatures.length) {
    throw CoreErrors.invalidOperationArguments(
      '$_tag.batchVerifyMinPk',
      name: 'lists',
      reason: 'publicKeys, messages, signatures must share non-zero length',
    );
  }
  return ApiValidate.call(
    '$_tag.batchVerifyMinPk',
    () => inner.batchVerifyMinPk(
      publicKeys: publicKeys,
      messages: messages,
      signatures: signatures,
      dst: dst,
    ),
  );
}