frosty 5.0.0 copy "frosty: ^5.0.0" to clipboard
frosty: ^5.0.0 copied to clipboard

FROST threshold Schnorr signatures using an underlying Rust library

example/lib/main.dart

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)}");
}
1
likes
150
points
495
downloads

Documentation

API reference

Publisher

verified publisherpeercoin.net

Weekly Downloads

FROST threshold Schnorr signatures using an underlying Rust library

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

code_assets, coinlib, ffi, flutter_rust_bridge, freezed_annotation, hooks, native_toolchain_rust, path

More

Packages that depend on frosty