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

edwards25519, where security meets simplicity in cryptography!!

edwards25519 #

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

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');
}

If you like this repo and found it useful, please consider donating ❤️!! Donation goes towards my tuition fees and helps me maintain edwards25519 and other repos. Thank you so much!!`

4
likes
140
pub points
7%
popularity

Publisher

unverified uploader

edwards25519, where security meets simplicity in cryptography!!

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on edwards25519