-
Notifications
You must be signed in to change notification settings - Fork 57
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
Scaffold web5.vc
#116
Scaffold web5.vc
#116
Conversation
Codecov Report
@@ Coverage Diff @@
## main #116 +/- ##
===========================================
- Coverage 66.05% 50.45% -15.61%
===========================================
Files 31 33 +2
Lines 3456 3554 +98
Branches 195 86 -109
===========================================
- Hits 2283 1793 -490
- Misses 1171 1761 +590
+ Partials 2 0 -2
|
@@ -68,6 +70,7 @@ export class Web5 { | |||
private constructor(options: Web5Options) { | |||
this.#connectedDid = options.connectedDid; | |||
this.dwn = new DwnApi(options.web5Agent, this.#connectedDid); | |||
this.vc = new VcApi(options.web5Agent, this.#connectedDid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.#connectedDid gives the private key information right?
If I read this correct it gives the JWK and the algo which is what we will need for signing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! 🔥
Supportive of renaming the package to
@mistermoe The question on where to put JOSE related capabilities is one that seems less clear, at least IMHO. Perhaps we ought to sketch out what would be in category if we exclude all things cryptography and credential related? Based on what's left we see how much it is and if its easier to then categorize it as mostly credential related, mostly crypto related, or is worthy of a package of its own. If you look at the JOSE registries it appears quite a lot of it might end up being crypto related but worth exploring: https://www.iana.org/assignments/jose/jose.xhtml. |
Signed-off-by: Frank Hinek <[email protected]>
Co-authored-by: Frank Hinek <[email protected]>
Co-authored-by: Frank Hinek <[email protected]>
…failing on GitHub Co-authored-by: Frank Hinek <[email protected]>
…kages Co-authored-by: Frank Hinek <[email protected]>
Co-authored-by: Frank Hinek <[email protected]>
This PR introduces the following:
web5.vc
. It doesn't include any actual functionality. just a tee upvcs
package where we can put decoupled functionality specific to verifiable credentials. Thinking about renaming this package tocredentials
Open questions / TODOs:
CryptoAlgorithm
interface that is implemented for each crypto algorithm we intend to support (e.g.secp256k1
,ed25519
), though @frankhinek may be covering this with hisKeyManager
& encryption work.jw*
functionality will live.vcs
package?crypto
package? a mixture of both? (JWK stuff in crypto package, JWT stuff invcs
package)jose
package?