Comments (8)
can look at this as well with guidance#
from dwn-sdk-js.
Haven't thought too deeply about this, but the reason behind filing this issue was seeing many instances of the DID resolver passing down from DWN construction to a lot of classes. But not passing it down also has the downside of hiding this dependency, making it not obvious that the DID resolver is a critical dependency... so I have not made up my mind to know if this is really a good direction. So I am going to take this off the "good first issue" list.
But it is not too difficult to implement, an approach to implement this would be:
- Create a singleton instance in did-resolver.
- Reference the singleton resolver wherever DID resolver is used.
- Allow setting of the singleton instance for ease of testing.
from dwn-sdk-js.
i understand the first 2 i think but not the last one what does it mean?
from dwn-sdk-js.
I meant to say "allow updating/changing the singleton instance so tests can mock it.
from dwn-sdk-js.
ok also i cant see where the Didresolver first gets instantiated in the file because from what i can see other files just import the clas and do '''didResolver: DidResolver'''
from dwn-sdk-js.
It is first injected through the Dwn
constructor, then passed down in a cascading fashion.
from dwn-sdk-js.
ok just to make sure you mean every occurrence of i just change to a getInstance method from the singleton
from dwn-sdk-js.
Super low pri now, can always reopen if this becomes an issue.
from dwn-sdk-js.
Related Issues (20)
- `RecordsWrite` with no data should return a 204 status code.
- Change the `can` property type in protocol definition schema to an array HOT 1
- Add `lowS: false` flag to secp256k1.ts `verify` HOT 1
- Revisit logic for deleting grant-authorized records when handling a permission revocation `RecordsWrite`
- `RecordsRead` should not fail if multiple values exist
- Implement a solution for Protocol versions HOT 1
- Consolidate HKDF implementation and usage with `web5-js`
- Confirm Protocol Role Security HOT 1
- Add general fail/persistence handling for restart-resilient features HOT 1
- RecordDelete is not being received in a subscription when it is expected
- Intermittent test failure in `resumable tasks` test HOT 1
- Add protocol-tagging index to `RecordsDelete` PermissionProtocol messages
- Support `anyone` can `query` in protocols
- Make deletes irreversible HOT 2
- Add 'squash' functionality to protocol path buckets
- Add support for mechanism to propagate records
- Add a 'freeze' property to Writes to prevent addition/modification to a record's descendants
- Block modifications to a user's DWN that exceed a clock float, if not ingested through a trusted channel HOT 1
- Bump dids and crypto package to latest
- Make reads of protocol paths return the latest created/published record HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwn-sdk-js.