This repository contains a Flutter application that integrates a Rust-based implementation of the FROST (Flexible Round-Optimized Schnorr Threshold) by the Zcash Foundation. It showcases an interactive demo, primarily focused on building cryptocurrency seedless wallets using threshold signatures, enhancing security and flexibility for cryptographic operations.
-
FROSTsupport: utilizes the FROST library written in Rust, providing robust and secure threshold signature functionality. -
Ed25519ciphersuite support. -
Trusted Dealer Keygensetup: implements the trusted dealer setup, assuming local communication between participants. This setup is ideal for scenarios where secure, local key distribution is possible, such as in seedless wallets. -
flutter_rust_bridge integration: leverages the
flutter_rust_bridgefor seamless and efficient communication between Dart and Rust, ensuring smooth operation and integration.
Check the releases page for the Windows and MacOS applications.
Flutter SDKRustandCargo- An understanding of threshold cryptography
flutter_rust_bridgesetup
Clone the repository:
git clone https://github.com/alienc0der/frostedNavigate to the project directory:
cd frostedGenerate the Dart bindings:
flutter_rust_bridge_codegen generate --watchRun the Flutter application:
flutter runThe application demonstrates a seedless wallet scenario:
- Generate key shards using the Generate Keys button. In a real scenario, the developer must ensure the security of the key shards.
- Select which key shards will be used for signing.
- Sign a message and verify the signature. The signature is encoded in
base64. It is verified using both a Rust and a Dart based implementation.
A secure management of key shards is not implemented. The developer must ensure that all key shards are encrypted and securely stored, and be fully protected against unauthorized access or malicious actors.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under MIT License - see the LICENSE file for details.
Thanks to the Zcash Foundation for the FROST library.
Gratitude to the flutter_rust_bridge team for their excellent tool.