kanari_crypto 0.2.1 copy "kanari_crypto: ^0.2.1" to clipboard
kanari_crypto: ^0.2.1 copied to clipboard

A Flutter package for Kanari's cryptographic functionalities.

example/main.dart

import 'package:kanari_crypto/kanari_crypto.dart';

/// Minimal example demonstrating basic usage of `kanari_crypto`.
Future<void> main() async {
  // Generate a mnemonic
  final mnemonic = await generateMnemonicApi(wordCount: BigInt.from(12));
  print('mnemonic: $mnemonic');

  // List supported curves
  final curves = await listSupportedCurves();
  print('Supported curves: ${curves.map((c) => c.name).join(', ')}');

  // Generate a keypair for the first supported curve
  if (curves.isNotEmpty) {
    final kp = await generateKeypairApi(curveName: curves.first.name);
    print('Generated address: ${kp.address}');
  }
}
0
likes
0
points
230
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for Kanari's cryptographic functionalities.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, flutter_rust_bridge

More

Packages that depend on kanari_crypto