Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pure dart implementation of ed25519 #5

Merged
merged 1 commit into from
Aug 11, 2020
Merged

Pure dart implementation of ed25519 #5

merged 1 commit into from
Aug 11, 2020

Conversation

Tougee
Copy link
Member

@Tougee Tougee commented Aug 10, 2020

Because there is no Dart library that supports translation between x25519 and ed25519, so I backported the Go implementation of edwards25519.

Copy link

@xni06 xni06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that I am able to:

  • consume this library
  • create and verify a signature on both an iOS and Android devices
  • run a Dart unit test

Thanks!

  test('verify signature', () {
    final ECKeyPair keyPair = Curve.generateKeyPair();
    final message = Uint8List.fromList(List.generate(32, (index) => index));
    final signature = Curve.calculateSignature(keyPair.privateKey, message);
    final verified = Curve.verifySignature(
      keyPair.publicKey,
      message,
      signature,
    );
    expect(verified, true);
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants