ed25519_edwards 0.0.4

Dart native js
Flutter Android iOS web

A Dart implementation of ed25519, inspired by Go cryptography libraries.

A Dart implementation of ed25519, inspired by Go cryptography libraries

Usage


import 'package:ed25519_edwards/ed25519_edwards.dart' as ed;

    void signAndVerify() {
      var keyPair = ed.generateKey();
      var privateKey = keyPair.privateKey;
      var publicKey = keyPair.publicKey;
      var message = utf8.encode('test message');
      var sig = ed.sign(privateKey, message);
      var result = ed.verify(publicKey, message, sig);
      assert(result == true);
    
      var wrongMessage = utf8.encode('wrong message');
      var wrongResult = ed.verify(publicKey, wrongMessage, sig);
      assert(wrongResult == false);
    }
Ed25519
public
seed
newKeyFromSeed
generateKey
sign
verify
Edwards25519
FeZero
FeOne
FeAdd
FeSub
FeCopy
FeCMove
FeFromBytes
FeToBytes
FeIsNegative
FeIsNonZero
FeNeg
FeCombine
FeMul
FeSqaure
FeSquare2
FeInvert
GeDoubleScalarMultVartime
PreComputedGroupElementCMove
GeScalarMultBase
ScMulAdd
ScReduce
ScMinimal

Pub package

1
likes
100
pub points
45%
popularity

A Dart implementation of ed25519, inspired by Go cryptography libraries.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

touge1027@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

collection, cryptography, hex

More

Packages that depend on ed25519_edwards