Skip to content

Fix Key.sign method and add test for it #55

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

puiterwijk
Copy link

@puiterwijk puiterwijk commented Dec 16, 2020

The truncate() method doesn't do anything if the "len" is greater
than the current length, which is the case here.
So instead, use the Vec.set_len method.

@puiterwijk puiterwijk force-pushed the fix_sign branch 2 times, most recently from 84c7a09 to c6abe02 Compare December 16, 2020 19:19
Copy link
Owner

@mathstuf mathstuf left a comment

Choose a reason for hiding this comment

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

Thanks! I have pkey test stuff laying around, but it's incomplete. This is a good start though.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
The truncate() method doesn't do anything if the "len" is greater
than the current length, which is the case here.
So instead, use the Vec.set_len method.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
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.

2 participants