dwn-sdk-js
dwn-sdk-js copied to clipboard
Decentralized Web Node (DWN)
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...
With a singleton, we will not need to pass the DID resolver around in many methods in the SDK.
- document reasons for why having telemetry in dwn would be beneficial - choose lib we want to use for telemetry - instrument codebase with said lib. Consider using [open...
Should resolve #50 I've added name as an optional string that can be passed in to `open()`. If `name` is passed in, use that, otherwise use old logic of accessing...
Calling `searchIndex` twice causes the process to hang, so check to see if the index has already been "opened" before opening it again. https://github.com/TBD54566975/dwn-sdk-js/blob/98202beeed579628203b45fdaad45583409bd743/src/store/message-store-level.ts#L43-L53
[Here](https://github.com/DigitalArsenal/keyconvert/blob/main/src/keyconvert.ts) 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...
Clean this up and likely move it elsewhere (e.g. a different function) so that it can be used elsewhere https://github.com/TBD54566975/dwn-sdk-js/blob/98202beeed579628203b45fdaad45583409bd743/src/store/message-store-level.ts#L110-L118
https://github.com/TBD54566975/dwn-sdk-js/blob/98202beeed579628203b45fdaad45583409bd743/src/store/message-store-level.ts#L43-L53
Find a workaround for search-indexlib not importing type `SearchIndex` https://github.com/TBD54566975/dwn-sdk-js/blob/98202beeed579628203b45fdaad45583409bd743/src/store/message-store-level.ts#L18-L24