aggPublicKeys method
Aggregates public keys for MuSig2
Aggregates non-empty keys (each 33-byte compressed secp256k1) with key-agg coefficients into the aggregate point. Throws on empty or malformed input.
Implementation
@override
Secp256k1Point aggPublicKeys(List<List<int>> keys) {
final agg = api.keyAgg(keys.map((e) => e.asBytes).toList());
return agg
.map((e) => Secp256k1Point.fromBytes(e))
.unwrapOrThrowCryptoError();
}