nonceAgg method

  1. @override
BuBytes nonceAgg(
  1. List<List<int>> pubnonces
)
override

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) {
  final agg = api.nonceAgg(pubnonces.map((e) => e.asBytes).toList());
  return agg.unwrapOrThrowCryptoError().asBytes;
}