-
Notifications
You must be signed in to change notification settings - Fork 19
Support for ps_sign_ and ps_verify_message Parsec operations. #83
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
Support for ps_sign_ and ps_verify_message Parsec operations. #83
Conversation
Signed-off-by: Robert Drazkowski <Robert.Drazkowski@globallogic.com>
hug-dev
left a comment
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.
Thanks for adding this 👌!
src/core/basic_client.rs
Outdated
|
|
||
| /// **[Cryptographic Operation]** Create an asymmetric signature on a message. | ||
| /// | ||
| /// The key intended for signing **must** have its `sign_hash` flag set |
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.
Maybe sign_message here? Same for the verify_message
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.
Corrected - thanks for pointing.
src/core/basic_client.rs
Outdated
| /// of `InvalidProvider` type is returned. | ||
| /// | ||
| /// See the operation-specific response codes returned by the service | ||
| /// [here](https://parallaxsecond.github.io/parsec-book/parsec_client/operations/psa_sign_hash.html#specific-response-status-codes). |
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 guess the link should be https://parallaxsecond.github.io/parsec-book/parsec_client/operations/psa_sign_message.html#specific-response-status-codes
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.
Corrected - thanks for pointing.
Signed-off-by: Robert Drazkowski <Robert.Drazkowski@globallogic.com>
ionut-arm
left a comment
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.
👍🏻
There was a typo in a working (not yet pushed) copy of Parsec/e2e-tests making sign/verify_message tests always succeeding.
After the typo was corrected, it exposed the problem and below changes fix it.