Skip to content

ECKey.__eq__() doesn't compare "kid" and "use" members #184

Closed

Description

@janste63
>>> from cryptojwt.jwk.ec import ECKey
>>> k1 = ECKey(crv="P-256", kty="EC", x="f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU", y="x_FEzRu9m36HLN_tue659LNpXW6p\
CyStikYjKIWI5a0", kid="kid1")
>>> k2 = ECKey(crv="P-256", kty="EC", x="f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU", y="x_FEzRu9m36HLN_tue659LNpXW6p\
CyStikYjKIWI5a0", kid="kid2")
>>> k1 == k2
True
>>> 

Activity

  1. self-assigned this
    on Jul 11, 2025
  2. added theissue type on Jul 11, 2025
  3. linked a pull request that will close this issueFix EC key compare (and test RSA eq) #187on Jul 11, 2025
  4. jschlyter commented on Jul 11, 2025

    @jschlyter
    Collaborator

    Please check PR #187 with suggested fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions