Convert the public key to a byte array.
@override List<int> toBytes() { return [ ...publicKeys.map((e) => e.publicKeyBytes()).expand((e) => e), threshold ]; }