frosty 5.0.0
frosty: ^5.0.0 copied to clipboard
FROST threshold Schnorr signatures using an underlying Rust library
import 'package:flutter/material.dart';
import 'package:frosty/frosty.dart' as frosty;
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await frosty.loadFrosty();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text("Frosty Example")),
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(10),
child: _getWidget(context),
),
),
),
);
Widget _getWidget(BuildContext context) =>
Text("Identifier for 1 = ${frosty.Identifier.fromUint16(1)}");
}