Skip to main content

activeledger_falcon 1.0.0 copy "activeledger_falcon: ^1.0.0" to clipboard
activeledger_falcon: ^1.0.0 copied to clipboard

Falcon-512 (FN-DSA) post-quantum keys for the Activeledger Dart SDK, backed by liboqs with prebuilt native libraries.

example/example.dart

import 'package:activeledger_falcon/activeledger_falcon.dart';

Future<void> main() async {
  // One call at startup. Returns false (and leaves the SDK on ML-DSA-65)
  // if the native library cannot be loaded.
  if (!ActiveledgerFalcon.enable()) {
    print('Falcon unavailable: ${ActiveledgerFalcon.failure}');
  }

  final ledger = Activeledger('http://localhost:5260');
  final key = ledger.generateKey(
    'identity',
    type: KeyType.preferredPostQuantum,
  );
  print('Generated a ${key.type} key');

  await ledger.onboard(key);
  print('Onboarded ${key.identity}');
  await ledger.close();
}
0
likes
160
points
434
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Falcon-512 (FN-DSA) post-quantum keys for the Activeledger Dart SDK, backed by liboqs with prebuilt native libraries.

Homepage
Repository (GitHub)
View/report issues

Topics

#activeledger #falcon #post-quantum #cryptography

License

MIT (license)

Dependencies

activeledger, ffi, liboqs

More

Packages that depend on activeledger_falcon