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

Refactor signing keys, Publisher Id into classes #168

Merged
merged 6 commits into from Jan 19, 2017

Conversation

yusefnapora
Copy link
Contributor

This changes the PublisherId type into a js class instead of just a flow object literal type, and adds some handy sign and verify methods to it, as well as static load and save to persist to disk. It also wraps the callback-based libp2p-crypto key interfaces with PublicSigningKey and PrivateSigningKey classes that use a Promise interface instead.

Also adds a test for loading a publisher id from concat and using it to sign and verify a message.

@yusefnapora yusefnapora mentioned this pull request Jan 18, 2017
2 tasks
@parkan
Copy link
Contributor

parkan commented Jan 19, 2017

hooray

@yusefnapora yusefnapora merged commit f0b0936 into master Jan 19, 2017
@yusefnapora yusefnapora deleted the yn-key-class-refactor branch January 19, 2017 15:36
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

2 participants