nonceAgg method
Aggregates non-empty pubnonces (each 66 bytes) into a 66-byte aggregate nonce. Throws on empty or malformed input.
Implementation
@override
BuBytes nonceAgg(List<List<int>> pubnonces) {
if (pubnonces.isEmpty) {
throw CoreErrors.invalidOperationArguments(
'$_tag.nonceAgg',
name: 'pubnonces',
reason: 'must not be empty',
);
}
for (final n in pubnonces) {
ApiValidate.length(n, 66, operation: '$_tag.nonceAgg', name: 'pubnonce');
}
return ApiValidate.call('$_tag.nonceAgg', () => inner.nonceAgg(pubnonces));
}