Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Conversation

coder11
Copy link
Contributor

@coder11 coder11 commented Dec 6, 2021

No description provided.

@coder11 coder11 requested review from folex and justprosh December 6, 2021 15:44
@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>
@coder11 coder11 requested review from folex and justprosh December 9, 2021 10:43
@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
Contributor

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
Contributor

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 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.

3 participants