// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.12.0.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';

class RustUtils {
  const RustUtils();

  static Future<List<Uint8List>> generateShares({
    required List<int> secret,
    required int total,
    required int threshold,
  }) => RustLib.instance.api.crateBridgeWrapperRustUtilsGenerateShares(
    secret: secret,
    total: total,
    threshold: threshold,
  );

  static Future<Uint8List> recoverSecret({
    required List<Uint8List> shares,
    required int threshold,
  }) => RustLib.instance.api.crateBridgeWrapperRustUtilsRecoverSecret(
    shares: shares,
    threshold: threshold,
  );

  @override
  int get hashCode => 0;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is RustUtils && runtimeType == other.runtimeType;
}
