Skip to content
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

ecdsa: refactor Signature constructors and improve docs #730

Merged

Commits on Jul 8, 2023

  1. ecdsa: refactor Signature constructors and improve docs

    Implements `from_bytes` in terms of `from_scalars`, rather than the
    other way around.
    
    This places the logic for checking that `r` and `s` are nonzero inside
    of the `from_scalars` method.
    
    Additionally improves the documentation to note the various failure
    cases, i.e. if `r` and/or `s` is out of the range `1..n`, where `n` is
    the scalar modulus.
    tarcieri committed Jul 8, 2023
    Configuration menu
    Copy the full SHA
    a2bdb7e View commit details
    Browse the repository at this point in the history