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

elliptic-curve: source FieldSize from Curve::UInt type #646

Merged

Commits on Jun 2, 2021

  1. elliptic-curve: source FieldSize from Curve::UInt type

    The `crypto-bigint` library defines an associated `ArrayLength<u8>` for
    every `UInt` type as part of the `ArrayEncoding` trait.
    
    This means we don't need to define both: we can now source what was
    previously `C::FieldSize` via `C::UInt::ByteSize`.
    
    This commit performs that replacement, adding a `FieldSize<C>` type
    alias which can be used anywhere `C::FieldSize` was previously used
    which sources the `ArrayLength<u8>` from `C::UInt` instead.
    tarcieri committed Jun 2, 2021
    Configuration menu
    Copy the full SHA
    1ae4c70 View commit details
    Browse the repository at this point in the history