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

Add weierstrass::FixedBaseScalarMul trait #49

Merged
merged 1 commit into from
Jun 20, 2020

Commits on Jun 20, 2020

  1. Add weierstrass::FixedBaseScalarMul trait

    Adds a trait for fixed-base scalar multiplication which accepts
    `&ScalarBytes` as input and returns an associated point type, whose
    bounds allow for a `From` conversion to either the
    `CompressedCurvePoint` or `UncompressedCurvePoint` for a given curve.
    
    Using this trait, a `weierstrass::PublicKey<C>::from_secret_key` method
    is conditionally implemented when the curve `C` impls the
    `FixedBaseScalarMul` trait, allowing generic computation of a public key
    from a secret key, with optional point compression (selected via a
    `compress` argument).
    tarcieri committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    46c9a3c View commit details
    Browse the repository at this point in the history