frosty_flutter 3.0.0 copy "frosty_flutter: ^3.0.0" to clipboard
frosty_flutter: ^3.0.0 copied to clipboard

FROST threshold Schnorr signatures using an underlying Rust library for flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:frosty_flutter/frosty_flutter.dart' as frosty;

void main() {
  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) => frosty.FrostyLoader(
    loadChild: const Text("Loading frosty..."),
    errorBuilder: (context, error) => Text("Error $error"),
    builder: (context) => Text("Identifier for 1 = ${frosty.Identifier.fromUint16(1)}"),
  );

}
0
likes
150
points
131
downloads

Publisher

verified publisherpeercoin.net

Weekly Downloads

FROST threshold Schnorr signatures using an underlying Rust library for flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

coinlib_flutter, flutter, flutter_rust_bridge, frosty, plugin_platform_interface

More

Packages that depend on frosty_flutter