@decentrl/sdk 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { multibaseDecode, verifyJsonSignature } from '@decentrl/crypto';
|
|
1
|
+
import { bytesToString, multibaseDecode, verifyJsonSignature } from '@decentrl/crypto';
|
|
2
2
|
import { resolveMediatorServiceEndpoint } from '@decentrl/identity/mediator/mediator.resolver';
|
|
3
3
|
export class PublicChannelReader {
|
|
4
4
|
transport;
|
|
@@ -154,7 +154,7 @@ export class PublicChannelReader {
|
|
|
154
154
|
}
|
|
155
155
|
const parts = did.replace('did:decentrl:', '').split(':');
|
|
156
156
|
if (parts.length >= 4) {
|
|
157
|
-
const mediatorDid =
|
|
157
|
+
const mediatorDid = bytesToString(multibaseDecode(parts[3]));
|
|
158
158
|
const endpoint = await resolveMediatorServiceEndpoint(mediatorDid);
|
|
159
159
|
this.mediatorEndpointCache.set(did, endpoint);
|
|
160
160
|
return endpoint;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decentrl/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Declarative SDK for building Decentrl protocol applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"zod": "^4.0.10",
|
|
10
10
|
"axios": "1.11.0",
|
|
11
|
-
"@decentrl/crypto": "0.0.
|
|
12
|
-
"@decentrl/identity": "0.0.
|
|
13
|
-
"@decentrl/event-store": "0.0.
|
|
11
|
+
"@decentrl/crypto": "0.0.14",
|
|
12
|
+
"@decentrl/identity": "0.0.14",
|
|
13
|
+
"@decentrl/event-store": "0.0.14"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"typescript": "^5.8.3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { multibaseDecode, verifyJsonSignature } from '@decentrl/crypto';
|
|
1
|
+
import { bytesToString, multibaseDecode, verifyJsonSignature } from '@decentrl/crypto';
|
|
2
2
|
import { resolveMediatorServiceEndpoint } from '@decentrl/identity/mediator/mediator.resolver';
|
|
3
3
|
import type { EventProcessor } from './event-processor.js';
|
|
4
4
|
import type { DecentrlTransport } from './transport.js';
|
|
@@ -220,7 +220,7 @@ export class PublicChannelReader<
|
|
|
220
220
|
const parts = did.replace('did:decentrl:', '').split(':');
|
|
221
221
|
|
|
222
222
|
if (parts.length >= 4) {
|
|
223
|
-
const mediatorDid =
|
|
223
|
+
const mediatorDid = bytesToString(multibaseDecode(parts[3]));
|
|
224
224
|
const endpoint = await resolveMediatorServiceEndpoint(mediatorDid);
|
|
225
225
|
this.mediatorEndpointCache.set(did, endpoint);
|
|
226
226
|
|