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

Add built-in service to sign data and verify signatures #110

Merged
merged 15 commits into from Dec 10, 2021

Conversation

coder11
Copy link
Contributor

@coder11 coder11 commented Dec 6, 2021

No description provided.

@coder11 coder11 changed the title Implement Security - the build it service to sign data and verify signatures Implement Security - the built in service to sign data and verify signatures Dec 6, 2021
Co-authored-by: Aleksey Proshutisnkiy <justprosh@users.noreply.github.com>
src/internal/builtInServices.ts Outdated Show resolved Hide resolved
@coder11
Copy link
Contributor Author

coder11 commented Dec 9, 2021

fixes #108

@coder11
Copy link
Contributor Author

coder11 commented Dec 9, 2021

related: fluencelabs/aqua-lib#18

@folex folex changed the title Implement Security - the built in service to sign data and verify signatures Add built-in service to sign data and verify signatures Dec 9, 2021
const error = (error: string): CallServiceResult => {
return {
result: error,
retCode: ResultCodes.unknownError,
Copy link
Member

Choose a reason for hiding this comment

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

Why is it always ResultCodes.unknownError?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like error code = 1 works fine. Do you have any ideas how to improve it?

Copy link
Member

Choose a reason for hiding this comment

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

I just don't understand the meaning yet. You throw e.g.,

error(`All arguments of 'concat' must be arrays: arguments ${str} are not`);

and it's an unknown error?

@coder11 coder11 merged commit 48fc017 into master Dec 10, 2021
@coder11 coder11 deleted the signing-service branch December 10, 2021 13:47
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