edwards25519 1.0.2 copy "edwards25519: ^1.0.2" to clipboard
edwards25519: ^1.0.2 copied to clipboard

edwards25519, where security meets simplicity in cryptography!!

edwards25519 #

edwards25519, where security meets simplicity in cryptography!! #

codecov Licence GitHub contributors Github Repo Stars GitHub Sponsors

import 'dart:typed_data';
import 'package:convert/convert.dart';
import 'package:edwards25519/edwards25519.dart';

void main() {
  final p1 = Point.zero()..setBytes(Uint8List.fromList(hex.decode('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')));

  final p2 = Point.zero()..setBytes(Uint8List.fromList(hex.decode('1200000000000000000000000000000000000000000000000000000000000080')));

  // if returns 1 then it is equal, 0 otherwise
  final isEqual = p1.equal(p2) == 1;
  print('isEqual: $isEqual');

  final res = hex.encode(p1.Bytes());
  // res: 1200000000000000000000000000000000000000000000000000000000000080
  print('res: $res');
}

This library implements the edwards25519 elliptic curve, exposing the necessary APIs to build a wide array of higher-level primitives. Read the docs at pub.dev/edwards25519.

Inspiration: Go-edwards25519

4
likes
0
pub points
7%
popularity

Publisher

unverified uploader

edwards25519, where security meets simplicity in cryptography!!

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on edwards25519