@tinycloud/sdk-services 2.11.0 → 3.0.0-beta.10
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.
- package/dist/encryption/index.cjs +4 -1
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.js +4 -1
- package/dist/encryption/index.js.map +1 -1
- package/dist/index.cjs +70 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +69 -5
- package/dist/index.js.map +1 -1
- package/dist/kv/index.cjs +1 -1
- package/dist/kv/index.cjs.map +1 -1
- package/dist/kv/index.js +1 -1
- package/dist/kv/index.js.map +1 -1
- package/package.json +1 -1
package/dist/encryption/index.js
CHANGED
|
@@ -1192,7 +1192,10 @@ var EncryptionService = class extends BaseService {
|
|
|
1192
1192
|
const descriptor = usable.data;
|
|
1193
1193
|
const networkPublicKey = base64Decode(descriptor.publicEncryptionKey);
|
|
1194
1194
|
const result = encryptToNetwork(this.crypto, {
|
|
1195
|
-
|
|
1195
|
+
// Discovery returns the node's canonical network identifier. Persist
|
|
1196
|
+
// that spelling in the envelope so a later response can be compared
|
|
1197
|
+
// byte-for-byte (notably for checksummed did:pkh principals).
|
|
1198
|
+
networkId: descriptor.networkId,
|
|
1196
1199
|
networkPublicKey,
|
|
1197
1200
|
plaintext,
|
|
1198
1201
|
...options?.aad !== void 0 ? { aad: options.aad } : {},
|