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

Feature signing and verifying? #67

Open
wellcaffeinated opened this issue Jun 2, 2024 · 8 comments
Open

Feature signing and verifying? #67

wellcaffeinated opened this issue Jun 2, 2024 · 8 comments

Comments

@wellcaffeinated
Copy link

Hi I like how this library is organized, but I'm struggling to find a way to do the following:

  1. Create a JWK from system randomness
  2. Create a signature with that key
  3. Verify the signature with a JWK

Is this library capable of doing this yet? Or is it still in progress?

@tarcieri
Copy link
Member

tarcieri commented Jun 3, 2024

You can call it "in progress" however work in this repo has largely stalled

@wellcaffeinated
Copy link
Author

Ah thanks. Just curious... It seems like almost all JOSE libraries have stalled in their development. Is there a larger reason for this? I've heard of some security flaws in the protocol. Are there alternatives we should be considering?

@tarcieri
Copy link
Member

tarcieri commented Jun 3, 2024

In the case of this repo I think the original contributors simply lost interest.

For signatures you can just sign data directly without involving some other protocol. X.509 SPKI provides a widely-used public key format which is supported by all of our crates.

@npmccallum
Copy link
Contributor

Interest, no. Resources, yes.

@wellcaffeinated
Copy link
Author

Ok thanks. I'm storing keys in a larger data structure that can be formatted as JSON, hence my interest in JWK.

I suppose I could do away with any JWS formatting and just encode the signature directly as base64 or similar...

@tarcieri
Copy link
Member

tarcieri commented Jun 3, 2024

@wellcaffeinated all of the signature algorithm implementations we maintain have serde support

@juliankrieger
Copy link

I am interested in further developing this library because RFC 8995 extensions need it. How would I go on about to contribute?

@tarcieri
Copy link
Member

tarcieri commented Jun 18, 2024

@juliankrieger perhaps sketch out what you have in mind here, and then open a PR which implements it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants