ed25519_dart_base 0.0.1

Flutter Android iOS web

Pure Dart implementation of Ed25519 - public-key signature system.

ed25519_dart #

Pure Dart implementation of Ed25519 - public-key signature system. For more information, please follow here.

In general, code mimics behaviour of original Python implementation with some extensions from ActiveState Code Recipes. Code is not tested for security requirements, so it is good idea to use it on trusted local machines!

Usage #

A simple usage example:

    import 'package:ed25519_dart/ed25519_dart.dart';
    
    void main() {
      // Create new random secret key
      var sk = secretKey();
      print("Created random secret key with length - ${sk.length}");
      // Derive public key from secret key
      var pk = publicKey(sk);
      print("Derived public key with length ${pk.length} from secret key");
      // Create simple message from list
      var msg = bytesFromList([1, 2, 3, 4]);
      print("Created simple message - $msg");
      // Sign message with pk secret ley and public key
      var signature = sign(msg, sk, pk);
      print("Message signed by secret and public key");
      // Verify message signature with public key
      var isVerified = verifySignature(signature, msg, pk);
      print("Created signature is verified - $isVerified");
    }

Package documentation #

Extended package documentation can be found here.

0
likes
90
pub points
50%
popularity

Pure Dart implementation of Ed25519 - public-key signature system.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

tqd0800210105@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, hex, pointycastle

More

Packages that depend on ed25519_dart_base