batchVerifyMinPk method
bool
batchVerifyMinPk({
- required List<
List< publicKeys,int> > - required List<
List< messages,int> > - required List<
Bls12G1Signature> signatures, - 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,
),
);
}