tbd54566975 / dwn-sdk-js Goto Github PK
View Code? Open in Web Editor NEWDecentralized Web Node (DWN) Reference implementation
Home Page: https://identity.foundation/decentralized-web-node/spec/
License: Apache License 2.0
Decentralized Web Node (DWN) Reference implementation
Home Page: https://identity.foundation/decentralized-web-node/spec/
License: Apache License 2.0
Add logic to prevent validating duplicate signatures
dwn-sdk-js/src/jose/jws/general/verifier.ts
Lines 14 to 44 in fcea849
Replace with JSON Schema based validation for publicJwk
. More info about the publicJwk
property can be found here: https://www.w3.org/TR/did-spec-registries/#publicJwk
dwn-sdk-js/src/jose/jws/general/verifier.ts
Lines 74 to 84 in fcea849
Current requester DID validation uses naive technique. Add better DID validation.
dwn-sdk-js/src/did/did-resolver.ts
Lines 26 to 33 in fcea849
Proposed changes in PR #60. New function validateDID(did)
:
dwn-sdk-js/src/did/did-resolver.ts
Lines 26 to 30 in e9b76bc
Function implementation:
dwn-sdk-js/src/did/did-resolver.ts
Lines 53 to 68 in e9b76bc
related proposal issue: decentralized-identity/decentralized-web-node#126
related proposal issue: decentralized-identity/decentralized-web-node#128
Add JSDoc to validator.ts validate(schemaName: string, payload: any)
dwn-sdk-js/src/validation/validator.ts
Lines 13 to 20 in fcea849
With a singleton, we will not need to pass the DID resolver around in many methods in the SDK.
As required for surfacing documentation on Developer Site
Starting point for request:
https://github.com/TBD54566975/dwn-sdk-js/blob/main/CONTRIBUTING.md
Link to : .eslintrc.cjs should be fully qualified (https://github.com/TBD54566975/dwn-sdk-js/blob/main/.eslintrc.cjs)
https://github.com/TBD54566975/dwn-sdk-js/blob/main/GOVERNANCE.md
Broken links:
[List of maintainers - MAINTAINERS.md](https://github.com/TBD54566975/dwn-sdk-js/blob/main/MAINTAINERS.md)
Figure out if we need to check to ensure that controller
=== did in kid are the same. This may matter more for a PermissionsRequest
Lines 150 to 154 in 98202be
Add docs to DIDResolver
class
dwn-sdk-js/src/did/did-resolver.ts
Lines 3 to 8 in fcea849
Figure out if we need to support ALL verification method properties.
dwn-sdk-js/src/did/did-resolver.ts
Lines 97 to 112 in fcea849
dwn-sdk-js/src/store/message-store-level.ts
Lines 43 to 53 in 98202be
JOSE doesn't support EdDSA
or ES256K
(aka secp256k1
) in the browser. I went ahead and added automated headless browser testing against our browser bundles so that we can fish out issues like these programmatically.
The tests that generate EdDSA
keys are currently failing in the browser.
Should we add an explicit check to ensure that there's only 1 signer?
dwn-sdk-js/src/interfaces/permissions/handlers/permissions-request.ts
Lines 21 to 28 in fcea849
related proposal issue: decentralized-identity/decentralized-web-node#127
Add DIDCache to constructor method signature.
dwn-sdk-js/src/did/did-resolver.ts
Lines 9 to 17 in fcea849
Replace with JSON Schema based validation for JsonWebKey2020
. More info about the JsonWebKey2020
type can be found here: https://www.w3.org/TR/did-spec-registries/#jsonwebkey2020
dwn-sdk-js/src/jose/jws/general/verifier.ts
Lines 66 to 73 in fcea849
For each // TODO:
in codebase:
Change type of query
dwn-sdk-js/src/store/message-store.ts
Lines 32 to 34 in fcea849
related proposal issue: decentralized-identity/decentralized-web-node#125
Currently all we do is Throw new Error
all over the place, and that may or may not be the path we want to stick with moving forward. Use this issue as a means to discuss pros/cons of different approaches for handling errors
Resolved by #23
Calling searchIndex
twice causes the process to hang, so check to see if the index has already been "opened" before opening it again.
dwn-sdk-js/src/store/message-store-level.ts
Lines 43 to 53 in 98202be
Add docs to dwn.ts processMessage(rawMessage: object, ctx: Context)
Lines 82 to 88 in fcea849
Add documentation for message.ts file as per this comment
Line 34 in 98202be
Lines 50 to 56 in 98202be
Replace publicKeyJwk validation with JSON Schema-based validation
publicKeyJwk
property can be found here:Lines 146 to 151 in 98202be
Clean this up and likely move it elsewhere (e.g. a different function) so that it can be used elsewhere
dwn-sdk-js/src/store/message-store-level.ts
Lines 110 to 118 in 98202be
Find a workaround for search-indexlib not importing type SearchIndex
dwn-sdk-js/src/store/message-store-level.ts
Lines 18 to 24 in 98202be
Here is a library that lets you convert between different key formats. Will be helpful when converting between, say, JWK and IPFS key formats, or generating BTC/ETH/IPFS addresses / hashes from secp256k1 keypairs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.