Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Zero padding Signature r-value/s-value to 32 bytes#664

Merged
bradlhart merged 1 commit intodevelopfrom
signature-s-32-bytes
Jan 29, 2020
Merged

Zero padding Signature r-value/s-value to 32 bytes#664
bradlhart merged 1 commit intodevelopfrom
signature-s-32-bytes

Conversation

@bradlhart
Copy link
Copy Markdown
Contributor

Change Description

With the current v21 release candidate, signatures that have less than 32 byte r or s values will generate signatures with lengths less than the 65 bytes necessary. The r and s need to be zero padded to resolve this issue. The elliptic library uses bn.js for the r and s values and the .toArray operation has a length argument with the purpose of zero padding the value to the length.

Fixes #663

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@bradlhart bradlhart changed the base branch from master to develop January 29, 2020 20:39
@bradlhart bradlhart merged commit ea5150e into develop Jan 29, 2020
@bradlhart bradlhart deleted the signature-s-32-bytes branch January 29, 2020 20:46
@gleehokie gleehokie mentioned this pull request Feb 4, 2020
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.

2 participants