getSessionKeyAggCoeff static method
Implementation
static BigInt getSessionKeyAggCoeff(
{required MuSig2Session session, required ProjectiveECCPoint pk}) {
final pkBytes = pk.toBytes();
final signerPk =
session.publicKeys.any((e) => BytesUtils.bytesEqual(e, pkBytes));
if (!signerPk) {
throw MuSig2Exception(
"The signer pubkey does not exists in pubkey list.");
}
return _keyAggCoeff(keys: session.publicKeys, key: pkBytes);
}