Skip to content

Normalize NistP256 signature #341

@x87-va

Description

@x87-va

I'm trying to convert signature to low S, but got compilation error.

Dependencies used:

ecdsa           = "0.12"
elliptic-curve  = "0.10"
p256            = "0.9"

Error:

let signature = Signature::<p256::NistP256>::from_der(&data)?;
signature.normalize_s()?;
^^^^^^^^^^^ the trait `NormalizeLow` is not implemented for `Scalar`

How to fix it? What exact type need to implement trait NormalizeLow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions