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
Conversation
Co-authored-by: Aleksey Proshutisnkiy <justprosh@users.noreply.github.com>
fixes #108 |
related: fluencelabs/aqua-lib#18 |
src/internal/builtInServices.ts
Outdated
const error = (error: string): CallServiceResult => { | ||
return { | ||
result: error, | ||
retCode: ResultCodes.unknownError, |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
No description provided.