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

EcdsaSecp256k1RecoverySignature2020 for commit credentials #275

Merged
merged 5 commits into from
Nov 30, 2022

Conversation

dpetran
Copy link
Contributor

@dpetran dpetran commented Nov 29, 2022

Closes #245

This is just the jvm implementation, cljs is a bit thornier.
The jld-processor/canonize function has differing calling conventions for cljs and clj - in cljs
it returns a promise, in clj it is synchronous. This wraps the calls in an core async go
block and reads the promise with the handy <p! macro.

As a note, our signature generation produces different signatures on cljs and clj, but
they are mutually readable. The tests verify that. See this issue for the details:

fluree/fluree.crypto#20

Fixes #245
Accidentally wrapped the ex-info info in the `str` call.
@dpetran dpetran requested a review from a team November 29, 2022 23:42
Copy link
Contributor

@bplatz bplatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is great... I'm concerned the embedded libraries in the fluree/json-ld repo will bloat the JS file size for the library here. If they are compact that is great though. Regardless, the most important thing for now is to have it working properly.

@dpetran
Copy link
Contributor Author

dpetran commented Nov 30, 2022

The library adds about 112KB to the optimized package size, so it's pretty substantial. I took a stab last week at implementing the subset of the api that we would need to canonicalize our own documents (so, not fully compliant with the entire suite but producing the same output for our needs). If I can finish that up we should be able to ditch this.

Still though, the entire package size is dominated by the static contexts and vocabs: those weigh in at about 3.74MB, so if we can figure out a clever way to deal with that we're a lot better off.

@dpetran dpetran merged commit a164254 into main Nov 30, 2022
@dpetran dpetran deleted the feature/vc-signing branch November 30, 2022 22:47
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

Successfully merging this pull request may close these issues.

Commit credential proof needs to use standard
2 participants