Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Wrap it into npm library & add tests #3

Merged
merged 3 commits into from
Feb 27, 2023

Conversation

brusherru
Copy link
Member

I've wrapped it into npm library (ready to publish and easy to use) and added tests.
Then it can be used like this:

import Ed25519 from '@spacemeshos/ed25519';

...
const keypair = await Ed25519.generateKeyPair(mySeed);
const message = Buffer.from('Hello World');
const signature = await Ed25519.sign(keypair.secretKey, message);
const isValid = await Ed25519.verify(keypair.publicKey, message, signature);

@brusherru brusherru self-assigned this Feb 24, 2023
@fasmat
Copy link
Member

fasmat commented Feb 27, 2023

LTGM, I'll merge it into the other branch and finish the change there 🙂

@fasmat fasmat merged commit 0dc795d into update-to-latest-ed25519-library Feb 27, 2023
@fasmat fasmat deleted the npm-lib-and-tests branch February 27, 2023 15:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants